asyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG

environment variable is set
This commit is contained in:
Victor Stinner 2014-06-23 00:12:14 +02:00
parent d6de5d8455
commit 7b7120e159
6 changed files with 11 additions and 14 deletions

View file

@ -1712,6 +1712,8 @@ class CoroutineGatherTests(GatherTestsBase, test_utils.TestCase):
self.assertIs(fut._loop, self.one_loop)
gen1.close()
gen2.close()
self.set_event_loop(self.other_loop, cleanup=False)
gen3 = coro()
gen4 = coro()
fut = asyncio.gather(gen3, gen4, loop=self.other_loop)