py.test hangs after showing test results -
i'm using py.test run bunch of tests. tests seem pass, process never terminates:
===== test session starts =====
platform win32 -- python 2.7.3 -- pytest-2.3.4
collected 179 items
common/tests/test_bar.py ...............
common/tests/test_foo.py .......
....
===== 159 passed, 20 skipped in 98.58 seconds =====
<-- prompt never gets -->
any ideas can cause , how debug?
edit
@hpk42 right - non-daemon thread never terminated.
it's tests start thread server loops. if case, may use thread.setdaemon(true)
marks thread "can thrown away" , might through python shutdown. ideally, though, should rather signal thread/loop should terminate.
Comments
Post a Comment