molotov icon indicating copy to clipboard operation
molotov copied to clipboard

Warnings about "object should be created from async function"

Open chartjes opened this issue 5 years ago • 2 comments

venv/lib/python3.7/site-packages/molotov/session.py:43 /mnt/c/Users/chartjes/normandy/venv/lib/python3.7/site-packages/molotov/session.py:43: DeprecationWarning: Inheritance class LoggedClientSession from ClientSession is discouraged class LoggedClientSession(ClientSession):

contract-tests/test_api_v3.py::test_list /mnt/c/Users/chartjes/normandy/venv/lib/python3.7/site-packages/aiohttp/connector.py:730: DeprecationWarning: The object should be created from async function loop=loop)

contract-tests/test_api_v3.py::test_list /mnt/c/Users/chartjes/normandy/venv/lib/python3.7/site-packages/aiohttp/connector.py:735: DeprecationWarning: The object should be created from async function resolver = DefaultResolver(loop=self._loop)

contract-tests/test_api_v3.py::test_list /mnt/c/Users/chartjes/normandy/venv/lib/python3.7/site-packages/molotov/session.py:54: DeprecationWarning: The object should be created from async function connector=connector, **kw)

contract-tests/test_api_v3.py::test_list /mnt/c/Users/chartjes/normandy/venv/lib/python3.7/site-packages/aiohttp/cookiejar.py:55: DeprecationWarning: The object should be created from async function super().init(loop=loop)

-- Docs: https://docs.pytest.org/en/latest/warnings.html

chartjes avatar Jun 25 '19 16:06 chartjes

Still seeing the same errors while using the latest version from the master branch

chartjes avatar Jul 02 '19 18:07 chartjes

I think the code that caused those warnings was removed by virtue of https://github.com/loads/molotov/issues/125

n1ngu avatar Aug 23 '21 15:08 n1ngu

fixed

tarekziade avatar Oct 22 '22 03:10 tarekziade