commit | ea4ce1c7766e7bc5428c994af0419cdb77e02fe7 | [log] [tgz] |
---|---|---|
author | Yury Selivanov <yselivanov@sprymix.com> | Wed Dec 16 20:41:11 2015 -0500 |
committer | Yury Selivanov <yselivanov@sprymix.com> | Wed Dec 16 20:41:11 2015 -0500 |
tree | 860d5d766c5a4223adf174875520bf680b910d2f | |
parent | 3cd863c86ec69ca6ed96e3f164fec338543784a7 [diff] |
asyncio/tests: Fix a ResourceWarning due to unclosed loop
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index 47b17d1..5ee20f6 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py
@@ -2212,6 +2212,10 @@ 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