def tearDown(self): global_zstorm._reset() del sys.modules["patch_package"] sys.path.remove(self._package_dir) if "patch_1" in sys.modules: del sys.modules["patch_1"] super(ZStormResourceManagerTest, self).tearDown()
def tearDown(self): transaction.abort() if django.VERSION >= (1, 1): settings._wrapped = None else: settings._target = None global_zstorm._reset() stores.have_configured_stores = False transaction.manager.free(transaction.get()) super(DjangoBackendDisconnectionTests, self).tearDown()
def tearDown(self): if django.VERSION >= (1, 1): conf.settings._wrapped = None else: conf.settings._target = None # Reset the utility to cleanup the StoreSynchronizer's from the # transaction. global_zstorm._reset() stores.have_configured_stores = False # Free the transaction to avoid having errors that cross # test cases. transaction.manager.free(transaction.get()) super(DjangoStoreTests, self).tearDown()
def tearDown(self): global_zstorm._reset() del sys.modules["patch_package"] sys.modules.pop("patch_package.patch_1", None) super(ZStormResourceManagerTest, self).tearDown()