From 720c561b75e687d87dc683b924a37295224a7811 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 21 Nov 2020 12:38:10 -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 200066c94..12e5bd975 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")