Bug 2359509 - python-et_xmlfile fails to build with Python 3.14: ElementTreeTest.test_simpleops: AssertionError: 'Element.remove(x): element not found' != 'list.remove(x): x not in list'
Summary: python-et_xmlfile fails to build with Python 3.14: ElementTreeTest.test_simpl...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-et_xmlfile
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Julien Enselme
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-04-14 13:41 UTC by Karolina Surma
Modified: 2025-04-14 13:41 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-04-14 13:41:39 UTC
python-et_xmlfile fails to build with Python 3.14.0a7.

________________________ ElementTreeTest.test_simpleops ________________________

self = <et_xmlfile.tests.test_incremental_tree_with_stdlib_tests.make_modified_tests.<locals>.ElementTreeTest testMethod=test_simpleops>

    @unittest.skipIf(
        (
            platform.python_implementation() == "PyPy"
            and sys.version_info[:3] < (3, 10, 15)
        ),
        "Functionality reverted but not picked up by PyPy yet",
    )
    def test_simpleops(self):
>       super().test_simpleops()

__class__  = <class 'et_xmlfile.tests.stdlib_base_tests.ElementTreeTest'>
self       = <et_xmlfile.tests.test_incremental_tree_with_stdlib_tests.make_modified_tests.<locals>.ElementTreeTest testMethod=test_simpleops>

et_xmlfile/tests/stdlib_base_tests.py:252: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
et_xmlfile/tests/_vendor/test/test_xml_etree.py:332: in test_simpleops
    self.assertEqual(str(cm.exception), 'list.remove(x): x not in list')
E   AssertionError: 'Element.remove(x): element not found' != 'list.remove(x): x not in list'
E   - Element.remove(x): element not found
E   + list.remove(x): x not in list
        cm         = <unittest.case._AssertRaisesContext object at 0x7f4af1e7b1d0>
        e          = <Element 'tag2' at 0x7f4af2446d40>
        elem       = <Element 'body' at 0x7f4af2446c50>
        element    = <Element 'tag' at 0x7f4af24472e0>
        self       = <et_xmlfile.tests.test_incremental_tree_with_stdlib_tests.make_modified_tests.<locals>.ElementTreeTest testMethod=test_simpleops>
        subelement = <Element 'subtag' at 0x7f4af2447290>
=========================== short test summary info ============================
FAILED et_xmlfile/tests/test_incremental_tree_with_stdlib_tests.py::ElementTreeTest::test_simpleops
======= 1 failed, 286 passed, 22 skipped, 23 xfailed, 5 xpassed in 1.05s =======

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08899297-python-et_xmlfile/

For all our attempts to build python-et_xmlfile with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-et_xmlfile/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

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.


Note You need to log in before you can comment on or make changes to this bug.