Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1690ed3

Browse files
committed
asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter
1 parent 293f3f5 commit 1690ed3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_asyncio/test_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,9 +993,9 @@ def gen():
993993
handle = None
994994
orig_call_later = loop.call_later
995995

996-
def call_later(self, delay, callback, *args):
996+
def call_later(delay, callback, *args):
997997
nonlocal handle
998-
handle = orig_call_later(self, delay, callback, *args)
998+
handle = orig_call_later(delay, callback, *args)
999999
return handle
10001000

10011001
loop.call_later = call_later

0 commit comments

Comments
 (0)