diff options
author | Olle Lundberg <geek@nerd.sh> | 2014-08-14 12:00:46 +0200 |
---|---|---|
committer | Olle Lundberg <geek@nerd.sh> | 2014-08-14 12:00:46 +0200 |
commit | a429e17e8e5cc3f5d442d374fb4843badfd4dd48 (patch) | |
tree | 1405561b6de5891b1a5ac8d6c4b7c65b7387d8b3 /test.py | |
parent | 991d56bad32c1ea4eda6c86771a4a4b7bef00475 (diff) |
Join the threads with a low timeout.
Instead of using private methods on the threading class, let the
thread join, but with a low timeout.
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -149,10 +149,7 @@ def main(): # TODO: make that not a problem, jeez for thread in threading.enumerate(): if thread is not threading.currentThread(): - if PY2: - thread._Thread__stop() - else: - thread._stop() + thread.join(timeout=1) # Exit correctly if not result.wasSuccessful(): sys.exit(1) |