Replies: 2 comments
-
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.
0 replies
-
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.
0 replies
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.
-
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-only
flagI 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