Skip to contentSkip to conversation

virt.virt_test_utils: Use Thread.isAlive instead of is_alive

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Sep 12, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virt.virt_test_utils: Use Thread.isAlive instead of is_alive

This API is only avaliable from python 2.6 onwards, so use isAlive, which does exist under 2.4.

---
 client/virt/virt_test_utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
client/virt/virt_test_utils.py +1 -1
index 7c3343b..b5e845a 100644
@@ -602,7 +602,7 @@ def run_autotest(vm, session, control_path, timeout, outputdir, params):
 
                 bg.start()
 
-                while bg.is_alive():
+                while bg.isAlive():
                     logging.info("Autotest job did not end, start a round of "
                                  "migration")
                     vm.migrate(timeout=mig_timeout, protocol=mig_protocol)
Signature · 1 line
1.7.6