From ce021a87e332677e5d8ede39f21272eb95c7d775 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 17 Nov 2020 12:38:40 -0600 Subject: [PATCH] test: Thread.isAlive() -> Thread.is_alive() Python added Thread.is_alive() in 2.6 and removed Thread.isAlive() in 3.9. This change is needed to run the tests with Python 3.9. https://bugs.python.org/issue37804 Signed-off-by: Shaun Ruffell --- 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 2b1358b3..4d4103b8 100644 --- a/test/basetest/utils.py +++ b/test/basetest/utils.py @@ -136,7 +136,7 @@ def _retrieve_output(thread, timeout, queue, thread_error): """Fetch output from binary subprocess queues""" # 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")