Commit 3ac99c80 authored by Tres Seaver's avatar Tres Seaver

- Restore the policy in tearDown.

parent 465c498a
......@@ -94,11 +94,13 @@ class TestCopySupport( unittest.TestCase ):
self.folder2 = getattr( self.app, 'folder2' )
self.policy = UnitTestSecurityPolicy()
SecurityManager.setSecurityPolicy(self.policy)
self.oldPolicy = SecurityManager.setSecurityPolicy( self.policy )
newSecurityManager( None, UnitTestUser().__of__( self.root ) )
def tearDown( self ):
noSecurityManager()
SecurityManager.setSecurityPolicy( self.oldPolicy )
del self.oldPolicy
del self.policy
del self.folder2
del self.folder1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment