Skip to content

Commit

Permalink
Avoid DeprecationWarning: There is no current event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Feb 11, 2022
1 parent 4843e94 commit 63e712d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_asyncio/test_taskgroups.py
Expand Up @@ -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):
Expand Down

0 comments on commit 63e712d

Please sign in to comment.