From: Victor Stinner Date: Tue, 1 Jul 2014 10:38:51 +0000 (+0200) Subject: asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter X-Git-Tag: v3.4.2rc1~279 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1690ed397aadf4cc2057c43d960dbe2ba9e556d0;p=python asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter --- diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py index a5706ae513..c64e1ef5f7 100644 --- a/Lib/test/test_asyncio/test_tasks.py +++ b/Lib/test/test_asyncio/test_tasks.py @@ -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