mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #21651: Fix ResourceWarning when running asyncio tests on Windows.
Patch written by Claudiu Popa.
This commit is contained in:
parent
8551e0f3e0
commit
27d411255a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue