I get this when I run pytest with -s.
Apparently it was already noticed and dealt with here:
https://github.com/aio-libs/aiohttp/blob/f30a2043bb7e45d3ac775612c20c6e453f7c60f6/aiohttp/helpers.py#L103-L104
No warnings
Warnings
The following test:
python -m pytest tests/test_web_functional.py::test_subapp_reverse_static_url[pyloop] -x -s
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.
Something similar here: #4177
I think we need noop class with __await__ method.
@AtomsForPeace would you work on it?
Sure thing!
Got the same issue with aiohttp 4.0.0a1 Python 3.7.2 on MacOS:
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aiohttp/client.py:977:
RuntimeWarning: coroutine 'noop' was never awaited
self._resp.release()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
The application works, but the warnings are there.
Is there a way to handle or silence this (apart from downgrading back to 3.6.x)? Really looking forward to getting it fixed! Will be happy to provide more info if needed, just lmk.
Fixed by #4322
Most helpful comment
Got the same issue with aiohttp 4.0.0a1 Python 3.7.2 on MacOS:
The application works, but the warnings are there.
Is there a way to handle or silence this (apart from downgrading back to 3.6.x)? Really looking forward to getting it fixed! Will be happy to provide more info if needed, just lmk.