tests: Use updated Thread object API
Replace isAlive with is_alive as the former is no longer supported in Python 3.9.
This commit is contained in:
committed by
Paul Beckingham
parent
75c0e41fcc
commit
407d66d681
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user