https://bugzilla.redhat.com/show_bug.cgi?id=2280002
Bug ID: 2280002 Summary: python-sphinxcontrib-programoutput fails to build with pytest 8: AssertionError: 'Unexpected return code 1 from command' not found in "directive 'deprecated' is already registered, it will be overridden" Product: Fedora Version: rawhide Status: NEW Component: python-sphinxcontrib-programoutput Assignee: zbyszek@in.waw.pl Reporter: thrnciar@redhat.com QA Contact: extras-qa@fedoraproject.org CC: epel-packagers-sig@lists.fedoraproject.org, mhroncok@redhat.com, thrnciar@redhat.com, zbyszek@in.waw.pl Blocks: 2256331 Target Milestone: --- Classification: Fedora
python-sphinxcontrib-programoutput fails to build with pytest 8.
=================================== FAILURES =================================== _____________ TestDirective.test_shell_with_unexpected_return_code _____________
self = <programoutput.tests.test_directive.TestDirective testMethod=test_shell_with_unexpected_return_code>
@with_content("""\ .. program-output:: python3 -c 'import sys; sys.exit("some output")' :shell:""", ignore_warnings=False) def test_shell_with_unexpected_return_code(self): with self.assertRaises(SphinxWarning) as excinfo: self.app.build() msg = excinfo.exception.args[0]
self.assertIn('Unexpected return code 1 from command',
msg) E AssertionError: 'Unexpected return code 1 from command' not found in "directive 'deprecated' is already registered, it will be overridden"
../../BUILDROOT/python-sphinxcontrib-programoutput-0.17-13.fc41.x86_64/usr/lib/python3.12/site-packages/sphinxcontrib/programoutput/tests/test_directive.py:308: AssertionError __________________ TestDirective.test_unexpected_return_code ___________________
self = <programoutput.tests.test_directive.TestDirective testMethod=test_unexpected_return_code>
@with_content("""\ .. program-output:: python3 -c 'import sys; sys.exit(1)'""", ignore_warnings=False) def test_unexpected_return_code(self): with self.assertRaises(SphinxWarning) as excinfo: self.app.build()
self.assertIn('Unexpected return code 1 from command',
excinfo.exception.args[0]) E AssertionError: 'Unexpected return code 1 from command' not found in "directive 'deprecated' is already registered, it will be overridden"
../../BUILDROOT/python-sphinxcontrib-programoutput-0.17-13.fc41.x86_64/usr/lib/python3.12/site-packages/sphinxcontrib/programoutput/tests/test_directive.py:293: AssertionError
=========================== short test summary info ============================ FAILED ../../BUILDROOT/python-sphinxcontrib-programoutput-0.17-13.fc41.x86_64/usr/lib/python3.12/site-packages/sphinxcontrib/programoutput/tests/test_directive.py::TestDirective::test_shell_with_unexpected_return_code FAILED ../../BUILDROOT/python-sphinxcontrib-programoutput-0.17-13.fc41.x86_64/usr/lib/python3.12/site-packages/sphinxcontrib/programoutput/tests/test_directive.py::TestDirective::test_unexpected_return_code =========== 2 failed, 60 passed, 1 deselected, 67 warnings in 4.18s ============
https://docs.pytest.org/en/stable/changelog.html
For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhi...
For all our attempts to build python-sphinxcontrib-programoutput with pytest 8, see: https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-sphin...
Let us know here if you have any questions.
Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a heads up before we merge new pytest into rawhide. For more info see a Fedora Change proposal https://fedoraproject.org/wiki/Changes/Pytest_8
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2256331 [Bug 2256331] pytest-8.2.0 is available
https://bugzilla.redhat.com/show_bug.cgi?id=2280002
Tomáš Hrnčiar thrnciar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Link ID| |Github | |OpenNTI/sphinxcontrib-progr | |amoutput/issues/61
https://bugzilla.redhat.com/show_bug.cgi?id=2280002
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
--- Comment #1 from Fedora Update System updates@fedoraproject.org --- FEDORA-2024-f6d16c14fe (python-sphinxcontrib-programoutput-0.17-20.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f6d16c14fe
https://bugzilla.redhat.com/show_bug.cgi?id=2280002
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |ERRATA Status|MODIFIED |CLOSED Fixed In Version| |python-sphinxcontrib-progra | |moutput-0.17-20.fc42 Last Closed| |2024-09-10 11:23:46
--- Comment #2 from Fedora Update System updates@fedoraproject.org --- FEDORA-2024-f6d16c14fe (python-sphinxcontrib-programoutput-0.17-20.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.
epel-packagers-sig@lists.fedoraproject.org