Bug 2245855 - python-jsonpointer fails to build with Python 3.13: AttributeError: module 'unittest' has no attribute 'makeSuite'
Summary: python-jsonpointer fails to build with Python 3.13: AttributeError: module 'u...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jsonpointer
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Igor Raits
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1938475
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-24 11:33 UTC by Karolina Surma
Modified: 2024-03-13 17:08 UTC (History)
7 users (show)

Fixed In Version: python-jsonpointer-2.4-1.fc41
Clone Of:
Environment:
Last Closed: 2024-03-13 17:08:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 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.


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