python-xmlrunner fails to build with Python 3.11.0a2. Traceback (most recent call last): File "/builddir/build/BUILD/xmlrunner-1.7.7/xmlrunner/xmlrunner.py", line 13, in <module> from unittest2.runner import TextTestRunner ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'unittest2' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/xmlrunner-1.7.7/setup.py", line 6, in <module> from xmlrunner.version import __version__ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/xmlrunner-1.7.7/xmlrunner/__init__.py", line 3, in <module> from .xmlrunner import XMLTestRunner ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/xmlrunner-1.7.7/xmlrunner/xmlrunner.py", line 17, in <module> from unittest import TestResult, _TextTestResult, TextTestRunner ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: cannot import name '_TextTestResult' from 'unittest' (/usr/lib64/python3.11/unittest/__init__.py) error: Bad exit status from /var/tmp/rpm-tmp.eD0Uk5 (%build) Removed many old deprecated unittest features: An alias of the TextTestResult class: _TextTestResult (deprecated in Python 3.2). (Contributed by Serhiy Storchaka in bpo-45162.) https://bugs.python.org/issue45162 https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02940938-python-xmlrunner/ For all our attempts to build python-xmlrunner with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-xmlrunner/ 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.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. 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.
Upstream is dead and nothing appears to require this, so I've retired it.