diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2022-02-10 12:57:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 12:57:20 (GMT) |
commit | 012e77eb5c3ba3d411f5967a7f368ebdb42ab88c (patch) | |
tree | df20f3f485dc20d388284213ef70fd55acbd2cfc /Lib/test/test_asyncio/test_futures2.py | |
parent | 4f21d528f0fc29c861c5461c9fa60bc532b0d300 (diff) | |
download | cpython-012e77eb5c3ba3d411f5967a7f368ebdb42ab88c.zip cpython-012e77eb5c3ba3d411f5967a7f368ebdb42ab88c.tar.gz cpython-012e77eb5c3ba3d411f5967a7f368ebdb42ab88c.tar.bz2 |
Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253)
Diffstat (limited to 'Lib/test/test_asyncio/test_futures2.py')
-rw-r--r-- | Lib/test/test_asyncio/test_futures2.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_futures2.py b/Lib/test/test_asyncio/test_futures2.py index 57d2419..60b5885 100644 --- a/Lib/test/test_asyncio/test_futures2.py +++ b/Lib/test/test_asyncio/test_futures2.py @@ -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 |