summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-03-15 00:06:51 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-03-15 00:06:51 +0100
commit27678a9726b662c0f8d8f59e09177637a02c85f7 (patch)
tree122f6e7ac16a7de44c6f727605a6cf097e6abc6f
parentfbc84459449938644104249d085a628dde62b0ac (diff)
downloadcython-27678a9726b662c0f8d8f59e09177637a02c85f7.tar.gz
Fix deprecated threading API usage in test runner.
-rwxr-xr-xruntests.py6
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