public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-jsonschema] rawhide: Remove patch for 3.15b regression
@ 2026-06-15 8:30 Steve Traylen
0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-06-15 8:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-jsonschema
Branch : rawhide
Commit : 6dfc2ead122236cc1b0fa4299a5d2f48d99424c4
Author : Steve Traylen <steve.traylen@cern.ch>
Date : 2026-06-15T09:27:20+02:00
Stats : +0/-110 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-jsonschema/c/6dfc2ead122236cc1b0fa4299a5d2f48d99424c4?branch=rawhide
Log:
Remove patch for 3.15b regression
- Resolves rhbz:2488367
One of the python 3.15 beta of alpha releases contained a regression
that is no longer needed for current 3.15.
---
diff --git a/1487.patch b/1487.patch
deleted file mode 100644
index 3f1c2e5..0000000
--- a/1487.patch
+++ /dev/null
@@ -1,108 +0,0 @@
-From 31f5277e7215760c50fa77b5c1e188b6b3fca2cc Mon Sep 17 00:00:00 2001
-From: Steve Traylen <steve.traylen@cern.ch>
-Date: Sat, 23 May 2026 12:05:10 +0200
-Subject: [PATCH] tests: fix test_uses_pprint for Python 3.15 pprint dict
-
-Python 3.15 changed pprint's output for dicts with non-string keys
-
-* https://docs.python.org/3.15/whatsnew/3.15.html#pprint
-* https://github.com/python/cpython/issues/112632
----
- jsonschema/tests/test_exceptions.py | 71 +++++++++++++++++++++++++++++
- 1 file changed, 71 insertions(+)
-
-diff --git a/jsonschema/tests/test_exceptions.py b/jsonschema/tests/test_exceptions.py
-index 358b9242..7863aaa6 100644
---- a/jsonschema/tests/test_exceptions.py
-+++ b/jsonschema/tests/test_exceptions.py
-@@ -1,5 +1,7 @@
- from unittest import TestCase
-+import sys
- import textwrap
-+import unittest
-
- import jsonpath_ng
-
-@@ -593,6 +595,10 @@ def test_multiple_item_paths(self):
- schema_path=["items", 0, 1],
- )
-
-+ @unittest.skipIf(
-+ sys.version_info >= (3, 15),
-+ "pprint dict format changed in 3.15, see test_uses_pprint_py315",
-+ )
- def test_uses_pprint(self):
- self.assertShows(
- """
-@@ -650,6 +656,71 @@ def test_uses_pprint(self):
- validator="maxLength",
- )
-
-+ @unittest.skipIf(
-+ sys.version_info < (3, 15),
-+ "pprint dict format pre-3.15, see test_uses_pprint",
-+ )
-+ def test_uses_pprint_py315(self):
-+ self.assertShows(
-+ """
-+ Failed validating 'maxLength' in schema:
-+ {
-+ 0: 0,
-+ 1: 1,
-+ 2: 2,
-+ 3: 3,
-+ 4: 4,
-+ 5: 5,
-+ 6: 6,
-+ 7: 7,
-+ 8: 8,
-+ 9: 9,
-+ 10: 10,
-+ 11: 11,
-+ 12: 12,
-+ 13: 13,
-+ 14: 14,
-+ 15: 15,
-+ 16: 16,
-+ 17: 17,
-+ 18: 18,
-+ 19: 19,
-+ }
-+
-+ On instance:
-+ [
-+ 0,
-+ 1,
-+ 2,
-+ 3,
-+ 4,
-+ 5,
-+ 6,
-+ 7,
-+ 8,
-+ 9,
-+ 10,
-+ 11,
-+ 12,
-+ 13,
-+ 14,
-+ 15,
-+ 16,
-+ 17,
-+ 18,
-+ 19,
-+ 20,
-+ 21,
-+ 22,
-+ 23,
-+ 24,
-+ ]
-+ """,
-+ instance=list(range(25)),
-+ schema=dict(zip(range(20), range(20))),
-+ validator="maxLength",
-+ )
-+
- def test_does_not_reorder_dicts(self):
- self.assertShows(
- """
diff --git a/python-jsonschema.spec b/python-jsonschema.spec
index 1bce86d..d976618 100644
--- a/python-jsonschema.spec
+++ b/python-jsonschema.spec
@@ -16,8 +16,6 @@ Release: %autorelease
License: MIT
URL: https://github.com/Julian/jsonschema
Source0: %{pypi_source}
-# py3.15 pprint change
-Patch0: https://github.com/python-jsonschema/jsonschema/pull/1487.patch
BuildArch: noarch
BuildRequires: python3-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-15 8:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 8:30 [rpms/python-jsonschema] rawhide: Remove patch for 3.15b regression Steve Traylen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox