Jaymon / testdata

Python module to make testing easier, it can generate random data like names and text, run commands, fetch urls, create files and directories, and more
MIT License
10 stars 0 forks source link

Python 3 running all tests is stalling on some threading issue #53

Closed Jaymon closed 5 years ago

Jaymon commented 5 years ago
$ pyt3 -d

Finished all the tests and then hung, when I ctrl-c quit it returned with:

^CException ignored in: <module 'threading' from '/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py'>
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 1308, in _shutdown
    lock.acquire()
KeyboardInterrupt
Jaymon commented 5 years ago

These stall:

 $ pyt3 testdata_test.ThreadTest.test_raise_error_join
 $ pyt3 testdata_test.ThreadTest.test_no_error_raised
Jaymon commented 5 years ago

Looks to be a lock not getting released when join reraises an error, this is what is reported:

Exception ignored in: <module 'threading' from '/.../3.7.4/.../3.7/lib/python3.7/threading.py'>
Traceback (most recent call last):
  File "/.../3.7.4/.../3.7/lib/python3.7/threading.py", line 1308, in _shutdown
    lock.acquire()