示例#1
0
 def setUp(self):
     self.old = dict(_SCENARIO)
     self.oldsetup = dict(_FIXTURES)
     util._STOP = False
     util._STOP_WHY = []
     util._TIMER = None
     self.policy = asyncio.get_event_loop_policy()
     _SCENARIO.clear()
     _FIXTURES.clear()
示例#2
0
 def tearDown(self):
     _SCENARIO.clear()
     _FIXTURES.clear()
     _FIXTURES.update(self.oldsetup)
     asyncio.set_event_loop_policy(self.policy)
示例#3
0
def _init_molotov():
    from molotov.api import _SCENARIO, _FIXTURES
    _SCENARIO.clear()
    _FIXTURES.clear()
    asyncio.set_event_loop(asyncio.new_event_loop())
示例#4
0
文件: support.py 项目: loads/ailoads
 def tearDown(self):
     _SCENARIO.clear()
     _FIXTURES.clear()
     _FIXTURES.update(self.oldsetup)
     asyncio.set_event_loop_policy(self.policy)