[Python-checkins] cpython (3.4): asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter

victor.stinner python-checkins at python.org
Tue Jul 1 12:39:40 CEST 2014


http://hg.python.org/cpython/rev/9b9ea48a76a5
changeset:   91503:9b9ea48a76a5
branch:      3.4
parent:      91501:4f55e802baf0
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Jul 01 12:38:51 2014 +0200
summary:
  asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter

files:
  Lib/test/test_asyncio/test_tasks.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -993,9 +993,9 @@
         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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list