本文整理汇总了Python中basetest.BaseTest.tearDown方法的典型用法代码示例。如果您正苦于以下问题:Python BaseTest.tearDown方法的具体用法?Python BaseTest.tearDown怎么用?Python BaseTest.tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类basetest.BaseTest
的用法示例。
在下文中一共展示了BaseTest.tearDown方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
BaseTest.tearDown(self)
support.ro_rmtree(self.store_parent)
support.ro_rmtree(self.tmp)
cli.stores = None
示例2: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
helpers.get_selections_gui = real_get_selections_gui
BaseTest.tearDown(self)
kill_server_process()
# Flush out ResourceWarnings
import gc; gc.collect()
示例3: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
# Wait for all downloads to finish, otherwise they may interfere with other tests
for dl in list(self.config.handler.monitored_downloads):
try:
tasks.wait_for_blocker(dl.downloaded)
except:
pass
BaseTest.tearDown(self)
kill_server_process()
# Flush out ResourceWarnings
import gc; gc.collect()
示例4: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
BaseTest.tearDown(self)
示例5: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
BaseTest.tearDown(self)
support.ro_rmtree(self.tmpdir)
assert os.umask(0o022) == 0o022
示例6: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
BaseTest.tearDown(self)
shutil.rmtree(self.tmpdir)
示例7: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
sys.meta_path = []
BaseTest.tearDown(self)
示例8: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
sys.meta_path = old_meta_path
BaseTest.tearDown(self)
示例9: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
BaseTest.tearDown(self)
scheduler._spawn_thread = real_spawn
示例10: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
BaseTest.tearDown(self)
kill_server_process()
示例11: tearDown
# 需要导入模块: from basetest import BaseTest [as 别名]
# 或者: from basetest.BaseTest import tearDown [as 别名]
def tearDown(self):
BaseTest.tearDown(self)
if self.child is not None:
os.kill(self.child, signal.SIGTERM)
os.waitpid(self.child, 0)
self.child = None