From 63e712dc2d381f9b91cb5fe2644b17823671952a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 11 Feb 2022 13:55:15 -0800 Subject: [PATCH] Avoid DeprecationWarning: There is no current event loop --- Lib/test/test_asyncio/test_taskgroups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_asyncio/test_taskgroups.py b/Lib/test/test_asyncio/test_taskgroups.py index fd6fec8c3b7d2a..e53e1265724b6a 100644 --- a/Lib/test/test_asyncio/test_taskgroups.py +++ b/Lib/test/test_asyncio/test_taskgroups.py @@ -33,7 +33,7 @@ def get_error_types(eg): class TestTaskGroup(unittest.IsolatedAsyncioTestCase): - def setUp(self): + async def asyncSetUp(self): self.loop = asyncio.get_event_loop() async def test_taskgroup_01(self):