Skip to content

Commit 63e712d

Browse files
committed
Avoid DeprecationWarning: There is no current event loop
1 parent 4843e94 commit 63e712d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_asyncio/test_taskgroups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_error_types(eg):
3333

3434
class TestTaskGroup(unittest.IsolatedAsyncioTestCase):
3535

36-
def setUp(self):
36+
async def asyncSetUp(self):
3737
self.loop = asyncio.get_event_loop()
3838

3939
async def test_taskgroup_01(self):

0 commit comments

Comments
 (0)