diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2022-02-10 14:57:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 14:57:20 +0200 |
commit | 012e77eb5c3ba3d411f5967a7f368ebdb42ab88c (patch) | |
tree | df20f3f485dc20d388284213ef70fd55acbd2cfc /Lib/test/test_asyncio/test_sock_lowlevel.py | |
parent | 4f21d528f0fc29c861c5461c9fa60bc532b0d300 (diff) | |
download | cpython-012e77eb5c3ba3d411f5967a7f368ebdb42ab88c.tar.gz cpython-012e77eb5c3ba3d411f5967a7f368ebdb42ab88c.zip |
Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253)
Diffstat (limited to 'Lib/test/test_asyncio/test_sock_lowlevel.py')
-rw-r--r-- | Lib/test/test_asyncio/test_sock_lowlevel.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_sock_lowlevel.py b/Lib/test/test_asyncio/test_sock_lowlevel.py index 448d835b04d..14001a4a500 100644 --- a/Lib/test/test_asyncio/test_sock_lowlevel.py +++ b/Lib/test/test_asyncio/test_sock_lowlevel.py @@ -10,6 +10,10 @@ from test import support from test.support import socket_helper +def tearDownModule(): + asyncio.set_event_loop_policy(None) + + class MyProto(asyncio.Protocol): connected = None done = None |