]> granicus.if.org Git - python/commitdiff
asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 1 Jul 2014 10:38:51 +0000 (12:38 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 1 Jul 2014 10:38:51 +0000 (12:38 +0200)
Lib/test/test_asyncio/test_tasks.py

index a5706ae5132650a5c4a13813abef4bb8296581c8..c64e1ef5f7c162464e0dd1bf64c842155c338d66 100644 (file)
@@ -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