mirror of
https://github.com/python/cpython.git
synced 2025-08-18 15:51:23 +00:00
[3.9] Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253). (GH-31256)
(cherry picked from commit 012e77eb5c
)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
b0517a1217
commit
a65be6e077
7 changed files with 29 additions and 3 deletions
|
@ -27,13 +27,13 @@ from asyncio import unix_events
|
|||
from test.test_asyncio import utils as test_utils
|
||||
|
||||
|
||||
MOCK_ANY = mock.ANY
|
||||
|
||||
|
||||
def tearDownModule():
|
||||
asyncio.set_event_loop_policy(None)
|
||||
|
||||
|
||||
MOCK_ANY = mock.ANY
|
||||
|
||||
|
||||
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