diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-11 11:34:30 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-11 11:34:30 +0100 |
| commit | a125497ea302aff937a5c59f98c39dba4f1ab59b (patch) | |
| tree | 3c4ef537c6bba46a544fefabae9b59c60a289c1b /Lib/test/test_asyncio/test_proactor_events.py | |
| parent | 1db2ba3a92a435e871800612a14a9dfc9e760fab (diff) | |
| download | cpython-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.py | 2 |
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): |
