本文整理汇总了Python中miro.test.framework.EventLoopTest.tearDown方法的典型用法代码示例。如果您正苦于以下问题:Python EventLoopTest.tearDown方法的具体用法?Python EventLoopTest.tearDown怎么用?Python EventLoopTest.tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类miro.test.framework.EventLoopTest
的用法示例。
在下文中一共展示了EventLoopTest.tearDown方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
self.remove_database()
corrupt_path = os.path.join(os.path.dirname(self.save_path), "corrupt_database")
if os.path.exists(corrupt_path):
os.remove(corrupt_path)
databaseupgrade._upgrade_overide = {}
EventLoopTest.tearDown(self)
示例2: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
# need to close the db before removing it from disk
app.db.close()
self.remove_database()
corrupt_path = os.path.join(os.path.dirname(self.save_path),
'corrupt_database')
if os.path.exists(corrupt_path):
os.remove(corrupt_path)
databaseupgrade._upgrade_overide = {}
EventLoopTest.tearDown(self)
示例3: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
app.download_state_manager.shutdown_downloader(
lambda: self.stopEventLoop(abnormal=False))
self.runEventLoop()
app.download_state_manager.daemon_starter = None
EventLoopTest.tearDown(self)
示例4: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
del app.device_manager
EventLoopTest.tearDown(self)
示例5: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
EventLoopTest.tearDown(self)
messages.BackendMessage.reset_handler()
messages.FrontendMessage.reset_handler()
示例6: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
self.subprocess.shutdown()
EventLoopTest.tearDown(self)
示例7: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
EventLoopTest.tearDown(self)
download.next_free_filename = download_utils.next_free_filename
download.chatter = True
示例8: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
del app.testing_mdp
EventLoopTest.tearDown(self)
示例9: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
shutil.rmtree(self.mytempdir, ignore_errors=True)
EventLoopTest.tearDown(self)
示例10: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
app.directory_watcher = None
EventLoopTest.tearDown(self)
示例11: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
EventLoopTest.tearDown(self)
workerprocess.shutdown()
示例12: tearDown
# 需要导入模块: from miro.test.framework import EventLoopTest [as 别名]
# 或者: from miro.test.framework.EventLoopTest import tearDown [as 别名]
def tearDown(self):
EventLoopTest.tearDown(self)
self.stopEventLoop(abnormal=False)