Bug 2245866
| Summary: | python-transaction fails to build with Python 3.13: AttributeError: module 'unittest' has no attribute 'makeSuite' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | python-transaction | Assignee: | Fedora Infrastructure SIG <infra-sig> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | aurelien, infra-sig, ksurma, mhroncok, ondrejj |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-11-13 08:40:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2244836 | ||
Reported upstream: https://github.com/zopefoundation/transaction/issues/120 https://koji.fedoraproject.org/koji/buildinfo?buildID=2319704 Fixed upstream. Rebuilt. |
python-transaction fails to build with Python 3.13.0a1. __________________________________ test_suite __________________________________ def test_suite(): > return unittest.makeSuite(WeakSetTests) src/transaction/tests/test_weakset.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'makeSuite' def __getattr__(name): if name == 'IsolatedAsyncioTestCase': global IsolatedAsyncioTestCase from .async_case import IsolatedAsyncioTestCase return IsolatedAsyncioTestCase > raise AttributeError(f"module {__name__!r} has no attribute {name!r}") E AttributeError: module 'unittest' has no attribute 'makeSuite' /usr/lib64/python3.13/unittest/__init__.py:80: AttributeError =========================== short test summary info ============================ FAILED src/transaction/tests/test_weakset.py::test_suite - AttributeError: mo... ================== 1 failed, 176 passed, 2 warnings in 0.28s =================== According to https://docs.python.org/3.13/whatsnew/3.13.html: Removed the following unittest functions, deprecated in Python 3.11: - unittest.findTestCases() - unittest.makeSuite() - unittest.getTestCaseNames() 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/06546843-python-transaction/ For all our attempts to build python-transaction with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-transaction/ 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.