Commit ea4ce1c7 authored by Yury Selivanov's avatar Yury Selivanov

asyncio/tests: Fix a ResourceWarning due to unclosed loop

parent 3cd863c8
...@@ -2212,6 +2212,10 @@ class SleepTests(test_utils.TestCase): ...@@ -2212,6 +2212,10 @@ class SleepTests(test_utils.TestCase):
self.loop = asyncio.new_event_loop() self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(None) asyncio.set_event_loop(None)
def tearDown(self):
self.loop.close()
self.loop = None
def test_sleep_zero(self): def test_sleep_zero(self):
result = 0 result = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment