Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834815 - dev-python/pytest-django-4.5.2 fails tests on MUSL
Summary: dev-python/pytest-django-4.5.2 fails tests on MUSL
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-09 07:37 UTC by Agostino Sarubbo
Modified: 2022-10-30 11:34 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,67.57 KB, text/plain)
2022-03-09 07:37 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-03-09 07:37:57 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pytest-django-4.5.2 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-09 07:37:59 UTC
Created attachment 766622 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-09 07:37:59 UTC
Error(s) that match a know pattern:


FAILED tests/test_manage_py_scan.py::test_django_project_found_invalid_settings_version
SKIPPED [1] tests/test_db_setup.py:193: could not import 'xdist': No module named 'xdist'
SKIPPED [1] tests/test_db_setup.py:277: could not import 'xdist': No module named 'xdist'
SKIPPED [1] tests/test_db_setup.py:314: could not import 'xdist': No module named 'xdist'
SKIPPED [1] tests/test_db_setup.py:420: could not import 'xdist': No module named 'xdist'
SKIPPED [1] tests/test_db_setup.py:455: could not import 'xdist': No module named 'xdist'
Comment 3 Jonathan Lovelace 2022-07-16 12:56:51 UTC
I see a similar failure on my desktop, which uses glibc. Looking at the test output, it looks to me like it's asserting that the pytest version is printed to *stderr*, but it's actually printed to *stdout*. I tried patching that line to test stdout instead, and with that change the test suite passes for me.
Comment 4 Larry the Git Cow gentoo-dev 2022-10-30 11:32:50 UTC
The bug has been closed via the following commit(s):

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

commit b4ca769092dd64a3eabacc092dcb4ebd66d677ff
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-30 11:16:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-30 11:30:13 +0000

    dev-python/pytest-django: fix tests with pytest 7; enable py3.11
    
    Closes: https://bugs.gentoo.org/834815
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/pytest-django-4.5.2-pytest-7.patch       | 30 ++++++++++++++++++++++
 .../pytest-django/pytest-django-4.5.2.ebuild       |  6 ++++-
 2 files changed, 35 insertions(+), 1 deletion(-)