[Zope3-checkins] CVS: Zope3 - test.py:1.75
Jim Fulton
jim at zope.com
Mon Sep 22 18:37:23 EDT 2003
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv31277
Modified Files:
test.py
Log Message:
Updated the logic that checks for orphaned threads to ignore
stopped threads.
=== Zope3/test.py 1.74 => 1.75 ===
--- Zope3/test.py:1.74 Mon Sep 22 12:26:05 2003
+++ Zope3/test.py Mon Sep 22 18:37:22 2003
@@ -209,7 +209,9 @@
# Did the test leave any new threads behind?
new_threads = [t for t in threading.enumerate()
- if t not in self._threads]
+ if (t.isAlive()
+ and
+ t not in self._threads)]
if new_threads:
print "The following test left new threads behind:"
print test
More information about the Zope3-Checkins
mailing list