The latest setuptools emits a deprecation warning for pkg_resources. This makes pytest's TestInvocationVariants.test_cmdline_python_namespace_package to fail with: E Failed: nomatch: 'test_hello.py::test_hello*PASSED*' E and: '============================= test session starts ==============================' E and: 'platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0 -- /usr/bin/python3' E and: 'cachedir: .pytest_cache' E and: 'rootdir: /tmp/pytest-of-mockbuild/pytest-1/popen-gw8/test_cmdline_python_namespace_package0/world' E and: 'collecting ... collected 4 items' E and: '' E fnmatch: 'test_hello.py::test_hello*PASSED*' E with: 'test_hello.py::test_hello PASSED [ 25%]' E fnmatch: 'test_hello.py::test_other*PASSED*' E with: 'test_hello.py::test_other PASSED [ 50%]' E fnmatch: 'ns_pkg/world/test_world.py::test_world*PASSED*' E with: 'ns_pkg/world/test_world.py::test_world PASSED [ 75%]' E fnmatch: 'ns_pkg/world/test_world.py::test_other*PASSED*' E with: 'ns_pkg/world/test_world.py::test_other PASSED [100%]' E nomatch: '*4 passed in*' E and: '' E and: '=============================== warnings summary ===============================' E and: '../../../../../../usr/lib/python3.11/site-packages/pkg_resources/__init__.py:121' E and: ' /usr/lib/python3.11/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API' E and: ' warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)' E and: '' E and: '-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html' E and: '========================= 4 passed, 1 warning in 0.11s =========================' E remains unmatched: '*4 passed in*' /builddir/build/BUILD/pytest-7.3.1/testing/acceptance_test.py:705: Failed Reproducible: Always Steps to Reproduce: Build the package in rawhide
Upstream PR: https://github.com/pytest-dev/pytest/pull/10938
FEDORA-2023-6a8e8fa897 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-6a8e8fa897
FEDORA-2023-6a8e8fa897 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.