diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-03-15 00:06:51 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-03-15 00:06:51 +0100 |
commit | 27678a9726b662c0f8d8f59e09177637a02c85f7 (patch) | |
tree | 122f6e7ac16a7de44c6f727605a6cf097e6abc6f | |
parent | fbc84459449938644104249d085a628dde62b0ac (diff) | |
download | cython-27678a9726b662c0f8d8f59e09177637a02c85f7.tar.gz |
Fix deprecated threading API usage in test runner.
-rwxr-xr-x | runtests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtests.py b/runtests.py index 711be548f..e2b23656a 100755 --- a/runtests.py +++ b/runtests.py @@ -1931,13 +1931,13 @@ threads_seen = [] def check_thread_termination(ignore_seen=True): if threading is None: # no threading enabled in CPython return - current = threading.currentThread() + current = threading.current_thread() blocking_threads = [] for t in threading.enumerate(): - if not t.isAlive() or t == current or t.name == 'time_stamper': + if not t.is_alive() or t == current or t.name == 'time_stamper': continue t.join(timeout=2) - if t.isAlive(): + if t.is_alive(): if not ignore_seen: blocking_threads.append(t) continue |