[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py Fix the test failure caught by buildbot. Garbage-collector related race

Marius Gedminas marius at pov.lt
Sat Jan 20 12:29:03 EST 2007


Log message for revision 72148:
  Fix the test failure caught by buildbot.  Garbage-collector related race
  conditions are fun to debug.
  
  

Changed:
  U   Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py

-=-
Modified: Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py
===================================================================
--- Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py	2007-01-20 14:47:06 UTC (rev 72147)
+++ Zope3/trunk/src/zope/app/publication/tests/test_zopepublication.py	2007-01-20 17:29:02 UTC (rev 72148)
@@ -140,6 +140,9 @@
         self.publication = ZopePublication(self.db)
 
     def tearDown(self):
+        # Close the request, otherwise a Cleanup object will start logging
+        # messages from its __del__ method at some inappropriate moment.
+        self.request.close()
         super(BasePublicationTests, self).tearDown()
 
     def testInterfacesVerify(self):
@@ -239,7 +242,7 @@
             'SiteError ERROR\n'
             '  Error while reporting an error to the Error Reporting utility')
 
-        # Here we got a single log record, because we havdn't
+        # Here we got a single log record, because we haven't
         # installed an error reporting utility.  That's OK.
 
         handler.uninstall()



More information about the Zope3-Checkins mailing list