[Zope3-checkins] CVS: Zope3 - test.py:1.48

Steve Alexander steve@cat-box.net
Mon, 7 Apr 2003 05:45:17 -0400


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv9937

Modified Files:
	test.py 
Log Message:
Made the printout of garbage more obvious.
Added a comment about possibly eating the garbage. (yum.)


=== Zope3/test.py 1.47 => 1.48 ===
--- Zope3/test.py:1.47	Thu Apr  3 10:24:29 2003
+++ Zope3/test.py	Mon Apr  7 05:45:16 2003
@@ -184,8 +184,11 @@
     def stopTest(self, test):
         self._testtimes[test] = time.time() - self._testtimes[test]
         if gc.garbage:
+            print "The following test left garbage:"
             print test
             print gc.garbage
+            # XXX Perhaps eat the garbage here, so that the garbage isn't
+            #     printed for every subsequent test.
 
     def print_times(self, stream, count=None):
         results = self._testtimes.items()