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

Bug 835090

Summary: dev-python/async_generator-1.10-r1: fails tests and install: Package installs '.pytest_cache' package which is forbidden
Product: Gentoo Linux Reporter: James Beddek <telans>
Component: New packagesAssignee: Zac Medico <zmedico>
Status: RESOLVED FIXED    
Severity: normal CC: jstein, python
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/24541
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description James Beddek 2022-03-13 21:40:02 UTC
Created attachment 766998 [details]
build.log

With PYTHON_TARGETS: python3_{8..10} pypy3

The package fails to install with "Package installs '.pytest_cache' package which is forbidden", which is strange because they are explicitly removed within python_test() the ebuild. Regardless, using the default implementation of python_test() as provided by the eclass fixes the installation.

The failing tests are:

FAILED async_generator/_tests/test_async_generator.py::test_async_generator - RuntimeError: Task got bad yield: 'mock_sleep'
FAILED async_generator/_tests/test_async_generator.py::test_aclose_yielding - RuntimeError: Task got bad yield: 'mock_sleep'
FAILED async_generator/_tests/test_async_generator.py::test___del__ - RuntimeError: Task got bad yield: 'mock_sleep'
FAILED async_generator/_tests/test_async_generator.py::test_gc_hooks_behavior - RuntimeError: Task got bad yield: 'mock_sleep'

For python3_9.

The installation failure comes from the fix to https://bugs.gentoo.org/733162, but removing that fix does not give me "ImportMismatchError" anymore as it may have been python3_7 specific.
Comment 1 James Beddek 2022-03-13 21:40:59 UTC
Created attachment 766999 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2022-03-15 01:08:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc862d165891d3699cb7dc2e056206dd69f8f240

commit cc862d165891d3699cb7dc2e056206dd69f8f240
Author:     James Beddek <telans@posteo.de>
AuthorDate: 2022-03-13 21:41:43 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2022-03-15 01:07:49 +0000

    dev-python/async_generator: fix installation for python3_9
    
    Closes: https://bugs.gentoo.org/835090
    Signed-off-by: James Beddek <telans@posteo.de>
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 dev-python/async_generator/async_generator-1.10-r1.ebuild | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)