mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253)
This commit is contained in:
parent
4f21d528f0
commit
012e77eb5c
7 changed files with 30 additions and 4 deletions
|
@ -26,6 +26,10 @@ from asyncio import unix_events
|
|||
from test.test_asyncio import utils as test_utils
|
||||
|
||||
|
||||
def tearDownModule():
|
||||
asyncio.set_event_loop_policy(None)
|
||||
|
||||
|
||||
MOCK_ANY = mock.ANY
|
||||
|
||||
|
||||
|
@ -39,10 +43,6 @@ def SIGNAL(signum):
|
|||
return 32768 - signum
|
||||
|
||||
|
||||
def tearDownModule():
|
||||
asyncio.set_event_loop_policy(None)
|
||||
|
||||
|
||||
def close_pipe_transport(transport):
|
||||
# Don't call transport.close() because the event loop and the selector
|
||||
# are mocked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue