Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncio.coroutine has been deprecated since Python 3.8 over async def syntax #18

Open
tirkarthi opened this issue Aug 13, 2020 · 0 comments

Comments

@tirkarthi
Copy link

Following tests emit deprecation warning regarding this as below :

tests/test_objects.py
80:        @asyncio.coroutine
103:        @asyncio.coroutine

tests/test_functions.py
176:        @asyncio.coroutine
199:        @asyncio.coroutine
tests/test_functions.py::CoroutineFunction::test_coroutine__decorator
  /root/checked_repos/callee/tests/test_functions.py:177: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def coro_func(loop):

tests/test_functions.py::CoroutineFunction::test_coroutine_function__decorator
  /root/checked_repos/callee/tests/test_functions.py:200: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def coro_func(loop):

tests/test_objects.py::Coroutine::test_coroutine__decorator
  /root/checked_repos/callee/tests/test_objects.py:81: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def coro_func(loop):

tests/test_objects.py::Coroutine::test_coroutine_function__decorator
  /root/checked_repos/callee/tests/test_objects.py:104: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
    def coro_func(loop):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant