Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 908812

Summary: dev-python/pytest-aiohttp-1.0.4 fails tests
Product: Gentoo Linux Reporter: Jonathan Lovelace <kingjon3377>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-python:pytest-aiohttp-1.0.4:20230618-223553.log
emerge-info.txt

Description Jonathan Lovelace 2023-06-18 23:40:25 UTC
Created attachment 864186 [details]
dev-python:pytest-aiohttp-1.0.4:20230618-223553.log

=dev-python/pytest-aiohttp-1.0.4 fails its test phase, specifically three tests under tests/test_fixtures.py:

=========================================================== short test summary info ============================================================
FAILED tests/test_fixtures.py::test_aiohttp_raw_server - AssertionError: assert {'passed': 0, 'skipped': 0, 'failed': 1, 'errors': 0, 'xpasse...
FAILED tests/test_fixtures.py::test_aiohttp_client_cls_fixture_custom_client_used - AssertionError: assert {'passed': 0, 'skipped': 0, 'faile...
FAILED tests/test_fixtures.py::test_aiohttp_client_cls_fixture_factory - AssertionError: assert {'passed': 0, 'skipped': 0, 'failed': 2, 'err...
=========================================== 3 failed, 6 passed, 1 deselected, 12 warnings in 25.33s ============================================

For all of them the outermost error is obviously a failure of an assertion about the output of running the inner tests; the output from test_aiohttp_raw_server includes this:

=========================================================== short test summary info ============================================================
FAILED test_aiohttp_raw_server.py::test_hello - AttributeError: 'coroutine' object has no attribute 'get'
============================================================== 1 failed in 0.18s ===============================================================

The output from test_aiohttp_client_cls_fixture_custom_client_used includes this:

=========================================================== short test summary info ============================================================
FAILED test_aiohttp_client_cls_fixture_custom_client_used.py::test_hello - TypeError: 'async_generator' object is not callable
============================================================== 1 failed in 0.05s ===============================================================

And the output from test_aiohttp_client_cls_fixture_factory includes two failures about "async_generator object is not callable"

This happens whether or not dev-python/async_generator is installed.
Comment 1 Jonathan Lovelace 2023-06-18 23:41:53 UTC
Created attachment 864188 [details]
emerge-info.txt