Kaydet (Commit) 6a75bb0d authored tarafından Victor Stinner's avatar Victor Stinner

(Merge 3.4) asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter

......@@ -993,9 +993,9 @@ class TaskTests(test_utils.TestCase):
handle = None
orig_call_later = loop.call_later
def call_later(self, delay, callback, *args):
def call_later(delay, callback, *args):
nonlocal handle
handle = orig_call_later(self, delay, callback, *args)
handle = orig_call_later(delay, callback, *args)
return handle
loop.call_later = call_later
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment