mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)
This commit is contained in:
parent
de6516264e
commit
8425de4147
26 changed files with 98 additions and 2 deletions
|
@ -4,6 +4,10 @@ import unittest
|
|||
from test.test_asyncio import functional as func_tests
|
||||
|
||||
|
||||
def tearDownModule():
|
||||
asyncio.set_event_loop_policy(None)
|
||||
|
||||
|
||||
class ReceiveStuffProto(asyncio.BufferedProtocol):
|
||||
def __init__(self, cb, con_lost_fut):
|
||||
self.cb = cb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue