mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
3855ba9136
commit
720c561b75
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue