mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
[3.10] Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253) (GH-31255)
(cherry picked from commit 012e77eb5c
)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
9b23f8f78f
commit
9f5145403b
7 changed files with 30 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue