Summary: | dev-python/pytest-django-4.5.2 fails tests on MUSL | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kingjon3377 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/pytest-dev/pytest-django/issues/995 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
2022-03-09 07:37:57 UTC
Created attachment 766622 [details]
build.log
build log and emerge --info
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' 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. 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(-) |