From 407d66d681a04070606b96df5bfc20e96fd3b023 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 20 Nov 2020 23:21:43 -0500 Subject: [PATCH] tests: Use updated Thread object API Replace isAlive with is_alive as the former is no longer supported in Python 3.9. --- test/basetest/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basetest/utils.py b/test/basetest/utils.py index 130718aeb..46d92595a 100644 --- a/test/basetest/utils.py +++ b/test/basetest/utils.py @@ -160,7 +160,7 @@ def _retrieve_output(thread, timeout, queue, thread_error): """ # Try to join the thread on failure abort thread.join(timeout) - if thread.isAlive(): + if thread.is_alive(): # Join should have killed the thread. This is unexpected raise TimeoutWaitingFor(thread_error + ". Unexpected error")