[Zope-Checkins]
SVN: Zope/branches/2.10/lib/python/Testing/ZopeTestCase/testBaseTestCase.py
Reset module-level globals before each test (backported from trunk).
Stefan H. Holek
stefan at epy.co.at
Sun Sep 23 11:00:10 EDT 2007
Log message for revision 79848:
Reset module-level globals before each test (backported from trunk).
Changed:
U Zope/branches/2.10/lib/python/Testing/ZopeTestCase/testBaseTestCase.py
-=-
Modified: Zope/branches/2.10/lib/python/Testing/ZopeTestCase/testBaseTestCase.py
===================================================================
--- Zope/branches/2.10/lib/python/Testing/ZopeTestCase/testBaseTestCase.py 2007-09-23 11:49:54 UTC (rev 79847)
+++ Zope/branches/2.10/lib/python/Testing/ZopeTestCase/testBaseTestCase.py 2007-09-23 15:00:09 UTC (rev 79848)
@@ -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