[Zope-Checkins]
SVN: Zope/trunk/lib/python/Testing/ZopeTestCase/testBaseTestCase.py
Reset module-level globals before each test.
Stefan H. Holek
stefan at epy.co.at
Thu Jul 12 06:40:01 EDT 2007
Log message for revision 77724:
Reset module-level globals before each test.
Changed:
U Zope/trunk/lib/python/Testing/ZopeTestCase/testBaseTestCase.py
-=-
Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/testBaseTestCase.py
===================================================================
--- Zope/trunk/lib/python/Testing/ZopeTestCase/testBaseTestCase.py 2007-07-12 10:11:13 UTC (rev 77723)
+++ Zope/trunk/lib/python/Testing/ZopeTestCase/testBaseTestCase.py 2007-07-12 10:40:00 UTC (rev 77724)
@@ -405,6 +405,7 @@
_sentinel1.append('__del__')
def afterSetUp(self):
+ _sentinel1[:] = []
self.anApp = base.app()
self.anApp.REQUEST._hold(self.Held())
@@ -422,6 +423,7 @@
_sentinel2.append('__del__')
def afterSetUp(self):
+ _sentinel2[:] = []
self.app.REQUEST._hold(self.Held())
def testClearClosesRequest(self):
@@ -438,6 +440,7 @@
_sentinel3.append('__del__')
def afterSetUp(self):
+ _sentinel3[:] = []
self.app.REQUEST._hold(self.Held())
def testClearClosesRequest(self):
More information about the Zope-Checkins
mailing list