Skip to content

RuntimeWarning: coroutine 'noop' was never awaited #4282

Closed
@AtomsForPeace

Description

Long story short

I get this when I run pytest with -s.

Apparently it was already noticed and dealt with here:

aiohttp/aiohttp/helpers.py

Lines 103 to 104 in f30a204

# prevent "coroutine noop was never awaited" warning.
coroutines._DEBUG = False # type: ignore

Expected behaviour

No warnings

Actual behaviour

Warnings

Steps to reproduce

The following test:
python -m pytest tests/test_web_functional.py::test_subapp_reverse_static_url[pyloop] -x -s

Your environment

I get it in python3.7 and python3.8.
Linux Mint 18.3
On aiohttp master

Any suggestions on how do fix it?
Maybe a sync and async version of noop?
I can make a pull request.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions