https://bugzilla.redhat.com/show_bug.cgi?id=2293082
Bug ID: 2293082 Summary: python-pikepdf fails to build with Python 3.13 in Fedora Rawhide (41): test_page_attrs: AssertionError: Regex pattern did not match. Product: Fedora Version: rawhide Status: NEW Component: python-pikepdf Assignee: quantum.analyst@gmail.com Reporter: ksurma@redhat.com QA Contact: extras-qa@fedoraproject.org CC: epel-packagers-sig@lists.fedoraproject.org, mhroncok@redhat.com, python-packagers-sig@lists.fedoraproject.org, quantum.analyst@gmail.com, zdohnal@redhat.com Blocks: 2244836 (PYTHON3.13), 2260875 (F41FTBFS,RAWHIDEFTBFS) Target Milestone: --- Classification: Fedora
python-pikepdf fails to build with Python 3.13 in Fedora Rawhide (41).
Build failure:
_______________________________ test_page_attrs ________________________________ [gw9] linux -- Python 3.13.0 /usr/bin/python3 graph = <pikepdf.Pdf description='/builddir/build/BUILD/python-pikepdf-8.8.0-build/pikepdf-8.8.0/tests/resources/graph.pdf'> def test_page_attrs(graph): # Test __getattr__ assert isinstance(graph.pages[0].Resources, Dictionary)
del graph.pages[0].Resources with pytest.raises( AttributeError, match=r"can't delete|property of 'Page' object has no deleter" ):
del graph.pages[0].obj
tests/test_page.py:295: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pikepdf.Page({ "/Contents": pikepdf.Stream(owner=<...>, data=b'q\n545.280000 0 0 443'..., { "/Length": 44 }),...diaBox": [ 0, 0, Decimal('545.2800'), Decimal('443.5200') ], "/Parent": <reference to /Pages>, "/Type": "/Page" })> name = 'obj' @augment_override_cpp def __delattr__(self, name): if hasattr(self.__class__, name):
object.__delattr__(self, name)
E AttributeError: property '' of 'Page' object has no deleter ../BUILDROOT/usr/lib64/python3.13/site-packages/pikepdf/_methods.py:1293: AttributeError During handling of the above exception, another exception occurred: graph = <pikepdf.Pdf description='/builddir/build/BUILD/python-pikepdf-8.8.0-build/pikepdf-8.8.0/tests/resources/graph.pdf'> def test_page_attrs(graph): # Test __getattr__ assert isinstance(graph.pages[0].Resources, Dictionary)
del graph.pages[0].Resources
with pytest.raises(
AttributeError, match=r"can't delete|property of 'Page' object has no deleter" ): E AssertionError: Regex pattern did not match. E Regex: "can't delete|property of 'Page' object has no deleter" E Input: "property '' of 'Page' object has no deleter" tests/test_page.py:292: AssertionError =========================== short test summary info ============================ FAILED tests/test_page.py::test_page_attrs - AssertionError: Regex pattern di... ======= 1 failed, 615 passed, 8 skipped, 1 xfailed, 1 warning in 10.28s ========
Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2244836 [Bug 2244836] Python 3.13 https://bugzilla.redhat.com/show_bug.cgi?id=2260875 [Bug 2260875] Fedora 41 FTBFS Tracker
https://bugzilla.redhat.com/show_bug.cgi?id=2293082
Elliott Sales de Andrade quantum.analyst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |RAWHIDE Fixed In Version| |python-pikepdf-9.0.0-2.fc41 Last Closed| |2024-06-19 23:19:02
epel-packagers-sig@lists.fedoraproject.org