Pytest discovery appears to hang when there are over 22 tests #24678
Unanswered
Jason Lines (jlines)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Macos 14.7.1
VSCode 1.96.2
ms-python 2024.22.1
Python test log if i have more than 22 items in the test, the logs show it is finding all the tests without issue, however the test explorer window will not show the tests and gets stuck on loading discovery, log shows no error it seems to just stall, it never prints the final line showing the execution duration
``============================= test session starts ==============================
platform darwin -- Python 3.12.3, pytest-8.3.3, pluggy-1.5.0
rootdir: /Users/jasonlines/dev/pytest_simple
plugins: anyio-4.7.0, requests-mock-1.12.1
collected 23 items
Python test log when less than 22 - test explorer populates normally
`============================= test session starts ==============================
platform darwin -- Python 3.12.3, pytest-8.3.3, pluggy-1.5.0
rootdir: /Users/jasonlines/dev/pytest_simple
plugins: anyio-4.7.0, requests-mock-1.12.1
collected 21 items
========================= 21 tests collected in 0.03s ==========================`
Any tips or additional troubleshooting steps would be helpful, thanks
All reactions