def tearDown(self):
     self.server.stop()
     # Make sure we close any open files before we remove the database.
     # test_cannot_start_in_read_only_mode triggers an exception after the
     # database has been opened but before it's registered as the IDatabase
     # utility, so we can't close it explicitly (our code has no references
     # to the DB; in fact the only refs are the cyclic ones between storages
     # and databases).
     gc.collect()
     shutil.rmtree(self.tempdir)
     setup.placelessTearDown()
 def tearDown(self):
     self.server.stop()
     # Make sure we close any open files before we remove the database.
     # test_cannot_start_in_read_only_mode triggers an exception after the
     # database has been opened but before it's registered as the IDatabase
     # utility, so we can't close it explicitly (our code has no references
     # to the DB; in fact the only refs are the cyclic ones between storages
     # and databases).
     gc.collect()
     shutil.rmtree(self.tempdir)
     setup.placelessTearDown()
def tearDown(test=None):
    setSecurityPolicy(test.globs['__policy'])
    restoreInteraction()
    setup.placelessTearDown()
 def tearDown(self):
     setup.placelessTearDown()
Exemple #5
0
def tearDownSecurityDirectives(test=None):
    setup.placelessTearDown()
Exemple #6
0
 def tearDown(self):
     setup.placelessTearDown()
Exemple #7
0
def tearDown(test):
    setSite()
    setup.placelessTearDown()
Exemple #8
0
def tearDown(test):
    utils.checkPermissionForPrincipal.func_code = oldMethod
    setup.placelessTearDown()
def tearDown(test):
    setup.placelessTearDown()
Exemple #10
0
 def tearDown(self):
     RealDatabaseTest.tearDown(self)
     setup.placelessTearDown()
     sys.modules.pop('zodbbrowser.nosuchmodule', None)
     uninstall_provides_hack()
def tearDown(test):
    facility.LocalKeyManagementFacility.generate = test.generate
    encrypt_util.ENCRYPTION_UTILITY = encrypt_util.TrivialEncryptionUtility()
    setup.placelessTearDown()
Exemple #12
0
def tearDownPersistent(test):
    transaction.abort()
    setup.placelessTearDown()
    setup.tearDownTestAsModule(test)
Exemple #13
0
def tearDown(test):
    setup.placelessTearDown()
    clear()
Exemple #14
0
 def tearDown(self, test=None):
     setup.placelessTearDown()
     mc.registerCrowdAdapter = self.oldRegisterCrowdAdapter
Exemple #15
0
def tearDown(test):
    placelessTearDown()
Exemple #16
0
def tearDown(test):
    stopLucene()
    setup.placelessTearDown()
 def tearDown(cls):
     cls.server.stop()
     shutil.rmtree(cls.tempdir)
     setup.placelessTearDown()
Exemple #18
0
 def tearDown(self):
     super(TestLockStorage, self).tearDown()
     del self.storage
     setup.placelessTearDown()
 def tearDown(cls):
     cls.server.stop()
     shutil.rmtree(cls.tempdir)
     setup.placelessTearDown()
Exemple #20
0
def tearDown(test=None):
    setSecurityPolicy(test.globs['__policy'])
    restoreInteraction()
    setup.placelessTearDown()
def tearDown(test=None):
    setup.placelessTearDown()
def tearDownSecurityDirectives(test=None):
    setup.placelessTearDown()
Exemple #23
0
def tearDown(test):
    session.__init__()
    setup.placelessTearDown()
 def tearDown(self):
     stop_serving()
     setup.placelessTearDown()
Exemple #25
0
 def tearDown(self):
     RealDatabaseTest.tearDown(self)
     setup.placelessTearDown()
     sys.modules.pop('zodbbrowser.nosuchmodule', None)
     uninstall_provides_hack()
Exemple #26
0
def tearDown(test=None):
    """Tear down for schooltool.relationshp doctests."""
    setup.placelessTearDown()
Exemple #27
0
 def tearDown(self):
     RealDatabaseTest.tearDown(self)
     setup.placelessTearDown()
Exemple #28
0
def tearDown(test=None):
    """Tear down for schooltool.relationshp doctests."""
    setup.placelessTearDown()
Exemple #29
0
def tearDown(test=None):
    setup.placelessTearDown()
Exemple #30
0
def tearDown(test):
    setup.placelessTearDown()
    setup.tearDownTestAsModule(test)
 def tearDown(self):
     RealDatabaseTest.tearDown(self)
     setup.placelessTearDown()
def tearDown(test):
    placelessTearDown()