summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-01 10:38:51 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-07-01 10:38:51 (GMT)
commit1690ed397aadf4cc2057c43d960dbe2ba9e556d0 (patch)
tree1feb72387ec5cff7d61b4a9996e0f13f5bc86efa /Lib
parent293f3f526d9c0a9b8e9e5a478bc57975f9cfe3c5 (diff)
downloadcpython-1690ed397aadf4cc2057c43d960dbe2ba9e556d0.zip
cpython-1690ed397aadf4cc2057c43d960dbe2ba9e556d0.tar.gz
cpython-1690ed397aadf4cc2057c43d960dbe2ba9e556d0.tar.bz2
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