コード例 #1
0
 def setUp(self):
     # Trigger a cleanup of the mapping so we start with a clean slate.
     AsyncIOLoop().close()
     # If we don't clean up after ourselves other tests may fail on
     # py34.
     self.orig_policy = asyncio.get_event_loop_policy()
     asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
コード例 #2
0
ファイル: asyncio_test.py プロジェクト: Agnewee/tornado
 def setUp(self):
     # Trigger a cleanup of the mapping so we start with a clean slate.
     AsyncIOLoop().close()
     # If we don't clean up after ourselves other tests may fail on
     # py34.
     self.orig_policy = asyncio.get_event_loop_policy()
     asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
コード例 #3
0
 def setUp(self):
     self.orig_policy = asyncio.get_event_loop_policy()
     self.executor = ThreadPoolExecutor(1)
コード例 #4
0
ファイル: asyncio_test.py プロジェクト: alexdxy/tornado
 def setUp(self):
     self.orig_policy = asyncio.get_event_loop_policy()
     self.executor = ThreadPoolExecutor(1)