From 24e767792dab6e4cac6e5374032e772951d0392e Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 2 Nov 2015 17:43:03 -0800 Subject: Backport a Python 3.4+ threading change to test.py --- test.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index bd966d1e..6a2c9a8b 100755 --- a/test.py +++ b/test.py @@ -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) -- cgit v1.2.3