[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/locking/tests.py Add
missing unit test cleanup to zope.app.locking.
Marius Gedminas
marius at pov.lt
Sat Jan 20 07:49:29 EST 2007
Log message for revision 72128:
Add missing unit test cleanup to zope.app.locking.
Changed:
U Zope3/trunk/src/zope/app/locking/tests.py
-=-
Modified: Zope3/trunk/src/zope/app/locking/tests.py
===================================================================
--- Zope3/trunk/src/zope/app/locking/tests.py 2007-01-20 12:44:19 UTC (rev 72127)
+++ Zope3/trunk/src/zope/app/locking/tests.py 2007-01-20 12:49:28 UTC (rev 72128)
@@ -14,7 +14,7 @@
"""
Locking tests
-$Id:$
+$Id$
"""
import sys, unittest, time
from zope.component.testing import PlacelessSetup
@@ -26,7 +26,7 @@
from zope.traversing.interfaces import IPathAdapter
from zope.security.testing import Principal, Participation
-from zope.app.testing import ztapi
+from zope.app.testing import ztapi, setup
from zope.app.file.file import File
from zope.app.folder.folder import Folder
from zope.app.locking.interfaces import ILockable, ILockTracker
@@ -73,6 +73,8 @@
def setUp(self):
super(TestLockStorage, self).setUp()
+ setup.placelessSetUp()
+ zope.security.management.endInteraction()
ztapi.provideAdapter(Interface, IKeyReference, FakeKeyReference)
ztapi.provideAdapter(Interface, ILockable, LockingAdapterFactory)
@@ -86,6 +88,7 @@
def tearDown(self):
super(TestLockStorage, self).tearDown()
del self.storage
+ setup.placelessTearDown()
def test_timeout(self):
# fake time function to avoid a time.sleep in tests
More information about the Zope3-Checkins
mailing list