Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835090 - dev-python/async_generator-1.10-r1: fails tests and install: Package installs '.pytest_cache' package which is forbidden
Summary: dev-python/async_generator-1.10-r1: fails tests and install: Package installs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-13 21:40 UTC by James Beddek
Modified: 2022-03-15 01:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (file_835090.txt,75.42 KB, text/plain)
2022-03-13 21:40 UTC, James Beddek
Details
emerge --info (file_835090.txt,8.35 KB, text/plain)
2022-03-13 21:40 UTC, James Beddek
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)