]> granicus.if.org Git - python/commitdiff
Issue #21651: Fix ResourceWarning when running asyncio tests on Windows.
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jun 2014 22:23:26 +0000 (00:23 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jun 2014 22:23:26 +0000 (00:23 +0200)
Patch written by Claudiu Popa.

Lib/test/test_asyncio/test_events.py

index 03c414914a76d3a2d9461966e79eef33cda4f7a8..e19d991fc44fa819e1f7b7e8a484daf367857b21 100644 (file)
@@ -1070,6 +1070,7 @@ class EventLoopTestsMixin:
     def test_internal_fds(self):
         loop = self.create_event_loop()
         if not isinstance(loop, selector_events.BaseSelectorEventLoop):
+            loop.close()
             self.skipTest('loop is not a BaseSelectorEventLoop')
 
         self.assertEqual(1, loop._internal_fds)