From ea4ce1c7766e7bc5428c994af0419cdb77e02fe7 Mon Sep 17 00:00:00 2001
From: Yury Selivanov <yselivanov@sprymix.com>
Date: Wed, 16 Dec 2015 20:41:11 -0500
Subject: asyncio/tests: Fix a ResourceWarning due to unclosed loop

---
 Lib/test/test_asyncio/test_tasks.py | 4 ++++
 1 file changed, 4 insertions(+)

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 @@ 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
 
-- 
cgit v0.12