コード例 #1
0
    def test_gather_single_future(self):
        loop = Loop()
        self.assertIsNone(loop.futures)

        loop.gather(wait_for_it(0.001))
        self.assertIsInstance(loop.futures, asyncio.Future)
        loop.run_until_complete()
コード例 #2
0
 def test_auto_gather_single_through_constructor(self):
     loop = Loop(wait_for_it(0.001), wait_for_it(0.001))
     self.assertIsInstance(loop.futures, asyncio.Future)
     loop.run_until_complete()