On 03/05/2012 09:46 PM, Vinson Lee wrote: > threading.is_alive is only available starting with Python 2.6.
Oh snap, we keep forgetting about those python 2.6 constructs. Applied, thanks: https://github.com/autotest/autotest/commit/d03dd090f3dbd54a9b1034f4cbc2fa66fcfddceb > 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() > _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
