asyncio/tests: Fix a ResourceWarning due to unclosed loop

This commit is contained in:
Yury Selivanov 2015-12-16 20:41:11 -05:00
parent 3cd863c86e
commit ea4ce1c776

View file

@ -2212,6 +2212,10 @@ class SleepTests(test_utils.TestCase):
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(None)
def tearDown(self):
self.loop.close()
self.loop = None
def test_sleep_zero(self):
result = 0