https://github.com/python/cpython/commit/064e989de50e37c8e79d3328a05804d72137e917
commit: 064e989de50e37c8e79d3328a05804d72137e917
branch: 3.14
author: Donghee Na <[email protected]>
committer: corona10 <[email protected]>
date: 2025-10-30T22:51:25+09:00
summary:
[3.14] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140782)
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]