mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253)
This commit is contained in:
parent
4f21d528f0
commit
012e77eb5c
7 changed files with 30 additions and 4 deletions
|
@ -3,6 +3,10 @@ import asyncio
|
|||
import unittest
|
||||
|
||||
|
||||
def tearDownModule():
|
||||
asyncio.set_event_loop_policy(None)
|
||||
|
||||
|
||||
class FutureTests(unittest.IsolatedAsyncioTestCase):
|
||||
async def test_recursive_repr_for_pending_tasks(self):
|
||||
# The call crashes if the guard for recursive call
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue