mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -328,6 +328,7 @@ class AsyncGenAsyncioTest(unittest.TestCase):
|
|||
def tearDown(self):
|
||||
self.loop.close()
|
||||
self.loop = None
|
||||
asyncio.set_event_loop_policy(None)
|
||||
|
||||
async def to_list(self, gen):
|
||||
res = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue