Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253)

This commit is contained in:
Andrew Svetlov 2022-02-10 14:57:20 +02:00 committed by GitHub
parent 4f21d528f0
commit 012e77eb5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 4 deletions

View file

@ -7,6 +7,12 @@ import asyncio
from asyncio import transports
def tearDownModule():
# not needed for the test file but added for uniformness with all other
# asyncio test files for the sake of unified cleanup
asyncio.set_event_loop_policy(None)
class TransportTests(unittest.TestCase):
def test_ctor_extra_is_none(self):