summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_protocols.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2022-02-10 12:57:20 (GMT)
committerGitHub <noreply@github.com>2022-02-10 12:57:20 (GMT)
commit012e77eb5c3ba3d411f5967a7f368ebdb42ab88c (patch)
treedf20f3f485dc20d388284213ef70fd55acbd2cfc /Lib/test/test_asyncio/test_protocols.py
parent4f21d528f0fc29c861c5461c9fa60bc532b0d300 (diff)
downloadcpython-012e77eb5c3ba3d411f5967a7f368ebdb42ab88c.zip
cpython-012e77eb5c3ba3d411f5967a7f368ebdb42ab88c.tar.gz
cpython-012e77eb5c3ba3d411f5967a7f368ebdb42ab88c.tar.bz2
Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253)
Diffstat (limited to 'Lib/test/test_asyncio/test_protocols.py')
-rw-r--r--Lib/test/test_asyncio/test_protocols.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_protocols.py b/Lib/test/test_asyncio/test_protocols.py
index d8cde6d..0f23263 100644
--- a/Lib/test/test_asyncio/test_protocols.py
+++ b/Lib/test/test_asyncio/test_protocols.py
@@ -4,6 +4,12 @@ from unittest import mock
import asyncio
+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 ProtocolsAbsTests(unittest.TestCase):
def test_base_protocol(self):