Bug 2488367 - python-jsonschema fails to build with Python 3.15: jsonschema.tests.test_exceptions.TestErrorInitReprStr.test_uses_pprint_py315
Summary: python-jsonschema fails to build with Python 3.15: jsonschema.tests.test_exce...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jsonschema
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Joel Capitao
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2026-06-12 14:41 UTC by Karolina Surma
Modified: 2026-06-15 12:19 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-06-15 12:19:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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