pytest runs forever #9470
Replies: 5 comments
-
If you launch pytest with |
Beta Was this translation helpful? Give feedback.
-
this is the output
|
Beta Was this translation helpful? Give feedback.
-
according to the traceback, it seems like you have a network hangup thats not running to completion and is not wrapped with a timeout/cancelation |
Beta Was this translation helpful? Give feedback.
-
Taking the freedom to convert this to a discussion, as it indeed doesn't look like a bug in pytest. |
Beta Was this translation helpful? Give feedback.
-
Hi, I had the same problem. For me it was creating new process in AppConfig.ready() in Django App. Pytest-django runs django app when running tests, hence it was also running that new process. As I was not closing this additional process in tests, the process was running forever causing pytests to go in circles and not shutting down. The quick workaround is to add shutting down the process at the end of all tests, i.e. by using pytest_sessionfinish. I hope it will be useful for someone in the future. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a django channel project, i did more than 10 tests it works fine, but the last one is running forever.
i wanna make a test for if a driver can update the trip or not(code of the test under the output) ,
the output of
pip list
ispytest and operation system -v
this is my test in test_websocket.py
and this is my consumer.py file
when i run pytest it stills like this
Beta Was this translation helpful? Give feedback.
All reactions