summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_sock_lowlevel.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2022-02-10 13:27:15 (GMT)
committerGitHub <noreply@github.com>2022-02-10 13:27:15 (GMT)
commit9f5145403b40b19e5c00ba43eaa35d5ea2b7b545 (patch)
treebd3aef7536cb4d9c904a36e8f77f3ad706bc337d /Lib/test/test_asyncio/test_sock_lowlevel.py
parent9b23f8f78fdb0d7eba016616ae7a97abbfc65aa6 (diff)
downloadcpython-9f5145403b40b19e5c00ba43eaa35d5ea2b7b545.zip
cpython-9f5145403b40b19e5c00ba43eaa35d5ea2b7b545.tar.gz
cpython-9f5145403b40b19e5c00ba43eaa35d5ea2b7b545.tar.bz2
[3.10] Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253) (GH-31255)
(cherry picked from commit 012e77eb5c3ba3d411f5967a7f368ebdb42ab88c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/test/test_asyncio/test_sock_lowlevel.py')
-rw-r--r--Lib/test/test_asyncio/test_sock_lowlevel.py4
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 448d835..14001a4 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