From: Donghee Na Date: Thu, 30 Oct 2025 13:51:10 +0000 (+0900) Subject: [3.13] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140781) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0f12b598022629ac6bcaaf1a1e35b992232dadd;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140781) --- 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