Skip to content

Commit c62d059

Browse files
committed
fix test_create_named_task_with_custom_factory
1 parent bccdb05 commit c62d059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_asyncio/test_base_events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,8 @@ async def test():
833833
loop.close()
834834

835835
def test_create_named_task_with_custom_factory(self):
836-
def task_factory(loop, coro):
837-
return asyncio.Task(coro, loop=loop)
836+
def task_factory(loop, coro, **kwargs):
837+
return asyncio.Task(coro, loop=loop, **kwargs)
838838

839839
async def test():
840840
pass

0 commit comments

Comments
 (0)