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()
def tearDownSecurityDirectives(test=None): setup.placelessTearDown()
def tearDown(test): setSite() setup.placelessTearDown()
def tearDown(test): utils.checkPermissionForPrincipal.func_code = oldMethod setup.placelessTearDown()
def tearDown(test): setup.placelessTearDown()
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()
def tearDownPersistent(test): transaction.abort() setup.placelessTearDown() setup.tearDownTestAsModule(test)
def tearDown(test): setup.placelessTearDown() clear()
def tearDown(self, test=None): setup.placelessTearDown() mc.registerCrowdAdapter = self.oldRegisterCrowdAdapter
def tearDown(test): placelessTearDown()
def tearDown(test): stopLucene() setup.placelessTearDown()
def tearDown(cls): cls.server.stop() shutil.rmtree(cls.tempdir) setup.placelessTearDown()
def tearDown(self): super(TestLockStorage, self).tearDown() del self.storage setup.placelessTearDown()
def tearDown(test=None): setup.placelessTearDown()
def tearDown(test): session.__init__() setup.placelessTearDown()
def tearDown(self): stop_serving() setup.placelessTearDown()
def tearDown(test=None): """Tear down for schooltool.relationshp doctests.""" setup.placelessTearDown()
def tearDown(self): RealDatabaseTest.tearDown(self) setup.placelessTearDown()
def tearDown(test): setup.placelessTearDown() setup.tearDownTestAsModule(test)