Skip to content

[BUG] Cannot import Astroid with schemathesis 3.19.6 #2191

Open
@kain88-de

Description

@kain88-de

Describe the bug
When I start a pytest session the astroid package enters an infinite loop when it is imported.

To Reproduce
I prepared a pipenv file that creates an environment to reproduce the issues.

Once you downloaded all files run

  1. make .venv
  2. run-pipenv run python -m pytest t.py --pdb

This will drop you in a debugger session at the place where astroid is stuck in a loop. With version 3.19.0 everything still works.

Expected behavior

Adding schemathesis as a dependency has no impact if I can import astroid in a pytest environment or not.

Environment (please complete the following information):

  • OS: linux
  • Python: 3.11

Additional context
I'm not sure what the root cause is so I will also open tickets for this with pytest and schemathesis

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🪳Needs PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions