[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/testing/functional.py Clear site (set to global) on tearDown.

Jim Fulton jim at zope.com
Tue Apr 18 19:55:25 EDT 2006


Log message for revision 67086:
  Clear site (set to global) on tearDown.
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/testing/functional.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/testing/functional.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/testing/functional.py	2006-04-18 23:55:22 UTC (rev 67085)
+++ Zope3/branches/jim-adapter/src/zope/app/testing/functional.py	2006-04-18 23:55:24 UTC (rev 67086)
@@ -170,6 +170,7 @@
             self.connection.close()
             self.connection = None
         self.db.close()
+        setSite(None)
 
     def getRootFolder(self):
         """Returns the Zope root folder."""
@@ -284,10 +285,6 @@
 class BrowserTestCase(CookieHandler, FunctionalTestCase):
     """Functional test case for Browser requests."""
 
-    def tearDown(self):
-        self.setSite(None)
-        super(BrowserTestCase, self).tearDown()
-
     def setSite(self, site):
         """Set the site which will be used to look up local components"""
         setSite(site)



More information about the Zope3-Checkins mailing list