diff --git a/tests/test_script.py b/tests/test_script.py index a83bc07f..d17a83bb 100644 --- a/tests/test_script.py +++ b/tests/test_script.py @@ -192,7 +192,7 @@ def start_watching(self): def stop_watching(self): """Stop the watch command thread.""" - assert self.t.isAlive() # If it has already ended, something is wrong + assert self.t.is_alive() # If it has already ended, something is wrong self.stopped = True self.t.join(1)