Skip to content

Commit a17ead5

Browse files
author
Victoria Hall
committed
test fixes
1 parent 6dfdabd commit a17ead5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unittests/test_dispatcher.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ def test_init_with_context(self):
999999
try:
10001000
self.loop.set_task_factory(
10011001
lambda loop, coro, context=None: ContextEnabledTask(
1002-
coro, loop=loop, context=ctx))
1002+
coro, loop=loop, context=context))
10031003
except TypeError:
10041004
exception_raised = True
10051005
self.assertFalse(exception_raised)
@@ -1008,7 +1008,7 @@ async def test_init_without_context(self):
10081008
exception_raised = False
10091009
try:
10101010
self.loop.set_task_factory(
1011-
lambda loop, coro, context=None: ContextEnabledTask(
1011+
lambda loop, coro: ContextEnabledTask(
10121012
coro, loop=loop))
10131013
except TypeError:
10141014
exception_raised = True

0 commit comments

Comments
 (0)