Bug 2488367

Summary: python-jsonschema fails to build with Python 3.15: jsonschema.tests.test_exceptions.TestErrorInitReprStr.test_uses_pprint_py315
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-jsonschemaAssignee: Joel Capitao <jcapitao>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: apevec, jcapitao, maxwell, openstack-sig, steve.traylen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-06-15 12:19:37 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: 2412434, 2433833    

Description Karolina Surma 2026-06-12 14:41:46 UTC
python-jsonschema fails to build with Python 3.15.0b2.

[SKIPPED]
pprint dict format changed in 3.15, see test_uses_pprint_py315
jsonschema.tests.test_exceptions.TestErrorInitReprStr.test_uses_pprint
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/usr/lib64/python3.15/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/usr/lib64/python3.15/unittest/case.py", line 691, in run
    self._callTestMethod(testMethod)
  File "/usr/lib64/python3.15/unittest/case.py", line 637, in _callTestMethod
    result = method()
  File "/builddir/build/BUILD/python-jsonschema-4.26.0-build/BUILDROOT/usr/lib/python3.15/site-packages/jsonschema/tests/test_exceptions.py", line 664, in test_uses_pprint_py315
    self.assertShows(
  File "/builddir/build/BUILD/python-jsonschema-4.26.0-build/BUILDROOT/usr/lib/python3.15/site-packages/jsonschema/tests/test_exceptions.py", line 530, in assertShows
    self.assertEqual(rest, expected)
  File "/usr/lib64/python3.15/unittest/case.py", line 949, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.15/unittest/case.py", line 1315, in assertMultiLineEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib64/python3.15/unittest/case.py", line 772, in fail
    raise self.failureException(msg)
builtins.AssertionError: "\nFa[40 chars]    {0: 0,\n     1: 1,\n     2: 2,\n     3: 3,[464 chars] 24]" != "\nFa[40 chars]    {\n        0: 0,\n        1: 1,\n        2[627 chars]   ]"
Diff is 1890 characters long. Set self.maxDiff to None to see it.
jsonschema.tests.test_exceptions.TestErrorInitReprStr.test_uses_pprint_py315
------------------------------------------------------------------------------

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

For our attempts to build python-jsonschema with Python 3.15, see:
https://koji.fedoraproject.org/koji/search?terms=python-jsonschema&type=package&match=exact

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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 Steve Traylen 2026-06-15 12:19:37 UTC
https://bodhi.fedoraproject.org/updates/FEDORA-2026-97873a97c6 - extra space in git commit failed to close this.