Skip to content

@coroutine decorator is deprecated since Python 3.8 #152

@oberstet

Description

@oberstet

Just a warning, but since we added cpy 3.8:

================================================================================================================================ warnings summary =================================================================================================================================
test/test_as_future.py::test_as_future_coroutine[asyncio]
  /home/oberstet/scm/crossbario/txaio/test/test_as_future.py:108: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def method(*args, **kw):

test/test_call_later.py::test_explicit_reactor_coroutine[asyncio]
  /home/oberstet/scm/crossbario/txaio/test/test_call_later.py:177: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def some_coroutine():

test/test_is_future.py::test_is_future_coroutine
  /home/oberstet/scm/crossbario/txaio/test/test_is_future.py:48: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def some_coroutine():

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=============================================================================================================== 106 passed, 11 skipped, 3 warnings in 1.63 seconds ================================================================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions