Bug 2245849 - python-defusedxml fails to build with Python 3.13: AttributeError: module 'unittest' has no attribute 'makeSuite'
Summary: python-defusedxml fails to build with Python 3.13: AttributeError: module 'un...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-defusedxml
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-24 11:07 UTC by Karolina Surma
Modified: 2023-10-30 12:28 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-10-30 12:28:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources python-defusedxml pull-request 6 0 None None None 2023-10-24 11:37:14 UTC

Description Karolina Surma 2023-10-24 11:07:22 UTC
python-defusedxml fails to build with Python 3.13.0a1.

+ /usr/bin/python3 tests.py
Traceback (most recent call last):
  File "/builddir/build/BUILD/defusedxml-0.7.1/tests.py", line 562, in <module>
    suite = test_main()
            ^^^^^^^^^^^
  File "/builddir/build/BUILD/defusedxml-0.7.1/tests.py", line 547, in test_main
    suite.addTests(unittest.makeSuite(TestDefusedcElementTree))
                   ^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/unittest/__init__.py", line 80, in __getattr__
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
AttributeError: module 'unittest' has no attribute 'makeSuite'

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06546773-python-defusedxml/

For all our attempts to build python-defusedxml with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-defusedxml/

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.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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.

Comment 1 Miro Hrončok 2023-10-24 11:14:44 UTC
https://github.com/tiran/defusedxml/commit/4e6cea5f5bb44bf06dd30a723cf13334693c3150

Part of 0.8.0rc2 and 0.8.0rc1.

Comment 2 Miro Hrončok 2023-10-24 11:37:15 UTC
https://src.fedoraproject.org/rpms/python-defusedxml/pull-request/6 should get rid of the error but also introduces a build dependency on lxml (which we still don't have in our copr), so I am unable to test it at this moment.


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