Replies: 3 comments 1 reply
-
|
I recently had this issue. I found a line that wasn't protected in an if name == "main" and it was reading in a very large CSV. Once I moved that line into a protected shield, pytest was no longer hanging on discovery |
Beta Was this translation helpful? Give feedback.
-
|
Let me know if @jonahZoldan-mfi comment helps and if not if you can send a small reproducible example as a zip or via github I can try it myself and repro it on my own machine to figure out where it is getting stuck |
Beta Was this translation helpful? Give feedback.
-
|
im having the same issue, commandline pytest works like a charm but i cant get it to discover any test because it just hangs forever. granted that im developing on a remote HPC (if it affects anything). im not sure what is the issue exactly |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lately test discovery in multiple workspaces has been hanging. The python output includes pytest's discovery output (the list of tests), but nothing after that.
If I try to restart discovery, I get:
[error] Test discovery already in progress, not starting a new one.Vscode is updated the latest version, I've uninstalled and reinstalled the python extension. I've restarted my computer. It's happening in multiple workspaces.
All of my tests run successfully when run in a terminal, as does pytest with the
--collect-onlyflagI don't even know how to begin figuring out what's wrong. Anyone have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions