diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-05-16 14:52:10 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-16 14:52:10 (GMT) |
commit | 68b34a720485f399e8699235b8f4e08f227dd43b (patch) | |
tree | 49bbe28097e67a4ffbf9c39d9b5b143c5cbe607d /Lib/test/test_asyncio/test_streams.py | |
parent | dbacfc227381fbc7b3c886ea0bd7806ab3dc62c2 (diff) | |
download | cpython-68b34a720485f399e8699235b8f4e08f227dd43b.zip cpython-68b34a720485f399e8699235b8f4e08f227dd43b.tar.gz cpython-68b34a720485f399e8699235b8f4e08f227dd43b.tar.bz2 |
bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)
The second attempt. Now deprecate `@coroutine` only, keep `yield from fut` as is.
https://bugs.python.org/issue36921
Diffstat (limited to 'Lib/test/test_asyncio/test_streams.py')
-rw-r--r-- | Lib/test/test_asyncio/test_streams.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index 258d8a7..fed6098 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -588,8 +588,7 @@ class StreamTests(test_utils.TestCase): stream = asyncio.StreamReader(loop=self.loop, _asyncio_internal=True) - @asyncio.coroutine - def set_err(): + async def set_err(): stream.set_exception(ValueError()) t1 = asyncio.Task(stream.readline(), loop=self.loop) |