[Zope3-checkins]
SVN: zope.testing/branches/output-refactoring/src/zope/testing/testrunner.py
Move the reporting of left-behind threads into OutputFormatter.
Marius Gedminas
marius at pov.lt
Fri Jul 13 07:26:03 EDT 2007
Log message for revision 77852:
Move the reporting of left-behind threads into OutputFormatter.
Changed:
U zope.testing/branches/output-refactoring/src/zope/testing/testrunner.py
-=-
Modified: zope.testing/branches/output-refactoring/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/branches/output-refactoring/src/zope/testing/testrunner.py 2007-07-13 11:23:38 UTC (rev 77851)
+++ zope.testing/branches/output-refactoring/src/zope/testing/testrunner.py 2007-07-13 11:26:02 UTC (rev 77852)
@@ -390,12 +390,19 @@
print garbage
def test_garbage(self, test, garbage):
- """Report garbage generated by a single test."""
+ """Report garbage generated by a test."""
if garbage:
print "The following test left garbage:"
print test
print garbage
+ def test_threads(self, test, new_threads):
+ """Report threads left behind by a test."""
+ if new_threads:
+ print "The following test left new threads behind:"
+ print test
+ print "New thread(s):", new_threads
+
def start_set_up(self, layer_name):
"""Report that we're setting up a layer.
@@ -1136,9 +1143,7 @@
and
t not in self._threads)]
if new_threads:
- print "The following test left new threads behind:"
- print test
- print "New thread(s):", new_threads
+ self.options.output.test_threads(test, new_threads)
class FakeInputContinueGenerator:
More information about the Zope3-Checkins
mailing list