summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-04 00:22:33 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-06-04 00:22:33 +0200
commit8bba9be43fd84d7a7c1b5d630d57222204dfddd6 (patch)
treea7dbe7e595804493f077b9596c55289fda290bcf
parentb639b576eea434a580e0bcfa08faa416aee19e3d (diff)
downloadtrollius-8bba9be43fd84d7a7c1b5d630d57222204dfddd6.tar.gz
Python issue #21651: Fix ResourceWarning when running asyncio tests on Windows.
Patch written by Claudiu Popa.
-rw-r--r--tests/test_events.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_events.py b/tests/test_events.py
index 03c4149..e19d991 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -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)