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:
Tomas Babej 2020-11-21 12:38:10 -05:00
parent 3855ba9136
commit 720c561b75
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -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")