summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/test_proactor_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-11 11:34:30 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-02-11 11:34:30 +0100
commita125497ea302aff937a5c59f98c39dba4f1ab59b (patch)
tree3c4ef537c6bba46a544fefabae9b59c60a289c1b /Lib/test/test_asyncio/test_proactor_events.py
parent1db2ba3a92a435e871800612a14a9dfc9e760fab (diff)
downloadcpython-git-a125497ea302aff937a5c59f98c39dba4f1ab59b.tar.gz
asyncio, Tulip issue 126: call_soon(), call_soon_threadsafe(), call_later(),
call_at() and run_in_executor() now raise a TypeError if the callback is a coroutine function.
Diffstat (limited to 'Lib/test/test_asyncio/test_proactor_events.py')
-rw-r--r--Lib/test/test_asyncio/test_proactor_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_proactor_events.py b/Lib/test/test_asyncio/test_proactor_events.py
index 9964f425d2..6bea1a3368 100644
--- a/Lib/test/test_asyncio/test_proactor_events.py
+++ b/Lib/test/test_asyncio/test_proactor_events.py
@@ -402,7 +402,7 @@ class BaseProactorEventLoopTests(unittest.TestCase):
NotImplementedError, BaseProactorEventLoop, self.proactor)
def test_make_socket_transport(self):
- tr = self.loop._make_socket_transport(self.sock, unittest.mock.Mock())
+ tr = self.loop._make_socket_transport(self.sock, asyncio.Protocol())
self.assertIsInstance(tr, _ProactorSocketTransport)
def test_loop_self_reading(self):