summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-01 10:39:26 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-01 10:39:26 (GMT)
commit6a75bb0d836f3e1ec87b9b47233682e19621206f (patch)
treebbc52af2ddd0ea502b8a252ff7e7a4d156bf66c7 /Lib
parent9f43505f3d2efe21e1a89552aade9c0d0e05b593 (diff)
parent1690ed397aadf4cc2057c43d960dbe2ba9e556d0 (diff)
downloadcpython-6a75bb0d836f3e1ec87b9b47233682e19621206f.zip
cpython-6a75bb0d836f3e1ec87b9b47233682e19621206f.tar.gz
cpython-6a75bb0d836f3e1ec87b9b47233682e19621206f.tar.bz2
(Merge 3.4) asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py4
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
index a5706ae..c64e1ef 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