https://github.com/python/cpython/commit/b0f12b598022629ac6bcaaf1a1e35b992232dadd
commit: b0f12b598022629ac6bcaaf1a1e35b992232dadd
branch: 3.13
author: Donghee Na <[email protected]>
committer: corona10 <[email protected]>
date: 2025-10-30T22:51:10+09:00
summary:

[3.13] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140781)

files:
M Lib/test/test_json/test_scanstring.py

diff --git a/Lib/test/test_json/test_scanstring.py 
b/Lib/test/test_json/test_scanstring.py
index cca556a3b95bab..9a6cdfe12d266c 100644
--- a/Lib/test/test_json/test_scanstring.py
+++ b/Lib/test/test_json/test_scanstring.py
@@ -144,7 +144,7 @@ def test_bad_escapes(self):
 
     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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to