mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
test: Thread.isAlive() -> Thread.is_alive()
Python added Thread.is_alive() in 2.6 and removed Thread.isAlive() in 3.9. This change is needed to run the tests with Python 3.9. https://bugs.python.org/issue37804 Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
parent
ace5cbe876
commit
ce021a87e3
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ def _retrieve_output(thread, timeout, queue, thread_error):
|
|||
"""Fetch output from binary subprocess queues"""
|
||||
# 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