threading.is_alive is only available starting with Python 2.6.

Fixes asynctest on Centos 5.7 (Python 2.4.3).

Signed-off-by: Vinson Lee <[email protected]>
---
 client/common_lib/base_utils.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/common_lib/base_utils.py b/client/common_lib/base_utils.py
index f0d0f69..3d478c9 100644
--- a/client/common_lib/base_utils.py
+++ b/client/common_lib/base_utils.py
@@ -232,8 +232,8 @@ class AsyncJob(BgJob):
         #make sure we've got stdout and stderr
         self.stdout_thread.join(1)
         self.stderr_thread.join(1)
-        assert not self.stdout_thread.is_alive()
-        assert not self.stderr_thread.is_alive()
+        assert not self.stdout_thread.isAlive()
+        assert not self.stderr_thread.isAlive()
 
         super(AsyncJob, self).cleanup()
 
-- 
1.7.5.4

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to