mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +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
|
|
@ -7,6 +7,12 @@
|
|||
from asyncio import transports
|
||||
|
||||
|
||||
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 TransportTests(unittest.TestCase):
|
||||
|
||||
def test_ctor_extra_is_none(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue