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
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(-)