Open
Description
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
make .venv
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