From 064e989de50e37c8e79d3328a05804d72137e917 Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Thu, 30 Oct 2025 22:51:25 +0900 Subject: [PATCH] [3.14] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140782) --- Lib/test/test_json/test_scanstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_json/test_scanstring.py b/Lib/test/test_json/test_scanstring.py index cca556a3b95b..9a6cdfe12d26 100644 --- a/Lib/test/test_json/test_scanstring.py +++ b/Lib/test/test_json/test_scanstring.py @@ -144,7 +144,7 @@ class TestScanstring: def test_overflow(self): with self.assertRaises(OverflowError): - self.json.decoder.scanstring(b"xxx", sys.maxsize+1) + self.json.decoder.scanstring("xxx", sys.maxsize+1) class TestPyScanstring(TestScanstring, PyTest): pass -- 2.47.3