Skip to content

Commit

Permalink
fix task_factory for old python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fried committed Nov 30, 2023
1 parent 9b6a478 commit 8bbef30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions later/unittest/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def __del__(self) -> None:
super().__del__()


def task_factory(loop, coro, *, name=None, context=None) -> TestTask:
task = TestTask(coro, loop=loop, name=name, context=context)
def task_factory(loop, coro, **kws) -> TestTask:
task = TestTask(coro, loop=loop, **kws)
return task


Expand Down

0 comments on commit 8bbef30

Please sign in to comment.