summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-11-05 09:40:58 -0800
committerMark Spruiell <mes@zeroc.com>2009-11-05 09:40:58 -0800
commit6a5ae912e1cae0df7039b4bc7505dbde68035824 (patch)
tree4af5f1e59d75f33607ab5efa3544bd5504a93110 /scripts/TestUtil.py
parentBug 4353 - BCC build broken (diff)
downloadice-6a5ae912e1cae0df7039b4bc7505dbde68035824.tar.bz2
ice-6a5ae912e1cae0df7039b4bc7505dbde68035824.tar.xz
ice-6a5ae912e1cae0df7039b4bc7505dbde68035824.zip
another fix to watch dog thread in TestUtil
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index 5a189ace276..dc55288aaec 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -1126,8 +1126,8 @@ class WatchDog(threading.Thread):
# The thread is marked as a daemon thread. This is done so that if
# an expect script runs off the end of main without kill/wait on each
- # spawned process the script will not hang tring to join with the
- # reader thread.
+ # spawned process the script will not hang trying to join with the
+ # thread.
self.setDaemon(True)
self.start()
@@ -1143,9 +1143,9 @@ class WatchDog(threading.Thread):
print "\a*** %s Warning: Test has been inactive for 3 minutes and may be hung", \
time.strftime("%x %X")
self._cv.release()
- except AttributeError:
+ except:
#
- # This exception can be raised if the thread is still alive when the interpreter is
+ # Exceptions can be raised if the thread is still alive when the interpreter is
# in the process of shutting down. For example, Python resets module objects to None,
# so code such as "time.strftime()" can fail with AttributeError.
#