Bug 2245855

Summary: python-jsonpointer fails to build with Python 3.13: AttributeError: module 'unittest' has no attribute 'makeSuite'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-jsonpointerAssignee: Igor Raits <igor.raits>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: agerstmayr, igor.raits, jkurik, ksurma, mgoodwin, mhroncok, nathans
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-jsonpointer-2.4-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-13 17:08:23 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: 1938475    
Bug Blocks: 2244836    

Description Karolina Surma 2023-10-24 11:33:42 UTC
python-jsonpointer fails to build with Python 3.13.0a1.

+ /usr/bin/python3 tests.py
Traceback (most recent call last):
  File "/builddir/build/BUILD/jsonpointer-2.3/tests.py", line 415, in <module>
    suite.addTest(unittest.makeSuite(SpecificationTests))
                  ^^^^^^^^^^^^^^^^^^
  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'
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/06546794-python-jsonpointer/

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

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 Aoife Moloney 2024-02-15 23:01:18 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Miro HronĨok 2024-03-13 15:24:22 UTC
Fixed in https://github.com/stefankoegl/python-json-pointer/commit/04a864f33848da6af1dea906ba4922770022ef66 which is part of 2.4

Comment 3 Fedora Update System 2024-03-13 17:03:18 UTC
FEDORA-2024-b0d1e33fc4 (python-jsonpointer-2.4-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b0d1e33fc4

Comment 4 Fedora Update System 2024-03-13 17:08:23 UTC
FEDORA-2024-b0d1e33fc4 (python-jsonpointer-2.4-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.