def tearDown(self):
if log.defaultObserver is not None:
log.defaultObserver.start()
TestCase.tearDown(self)
# Trial should restore the handler itself, but doesn't.
# See bug #3888 in Twisted tracker.
signal.signal(signal.SIGINT, signal.default_int_handler)
评论列表
文章目录