本文整理汇总了Python中miro.test.framework.MiroTestCase.tearDown方法的典型用法代码示例。如果您正苦于以下问题:Python MiroTestCase.tearDown方法的具体用法?Python MiroTestCase.tearDown怎么用?Python MiroTestCase.tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类miro.test.framework.MiroTestCase
的用法示例。
在下文中一共展示了MiroTestCase.tearDown方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
MiroTestCase.tearDown(self)
logger = logging.getLogger()
logger.setLevel(self._log_level)
for old_filter in logger.filters:
logger.removeFilter(old_filter)
for filter in self._old_filters:
logger.addFilter(filter)
示例2: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
self.item_tracker.destroy()
MiroTestCase.tearDown(self)
示例3: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
try:
os.remove(self.tmp_path)
except StandardError:
pass
MiroTestCase.tearDown(self)
示例4: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
MiroTestCase.tearDown(self)
app.config.set(prefs.EXPIRE_AFTER_X_DAYS, self._expire_after_x_days_value)
示例5: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
try:
os.unlink(self.save_path)
except OSError:
pass
MiroTestCase.tearDown(self)
示例6: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
del app.item_tracker_updater
MiroTestCase.tearDown(self)
示例7: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
MiroTestCase.tearDown(self)
messages.BackendMessage.reset_handler()
示例8: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
self.reset_ext_storage_manager()
MiroTestCase.tearDown(self)
示例9: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
del app.testing_mdp
MiroTestCase.tearDown(self)
示例10: tearDown
# 需要导入模块: from miro.test.framework import MiroTestCase [as 别名]
# 或者: from miro.test.framework.MiroTestCase import tearDown [as 别名]
def tearDown(self):
MiroTestCase.tearDown(self)
logging.getLogger().setLevel(self.oldlevel)