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-20 23:21:43 -05:00 committed by Paul Beckingham
parent 75c0e41fcc
commit 407d66d681

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