]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-137821: Fix wrongly tested json.decoder.scanstring (gh-140782)
authorDonghee Na <donghee.na@python.org>
Thu, 30 Oct 2025 13:51:25 +0000 (22:51 +0900)
committerGitHub <noreply@github.com>
Thu, 30 Oct 2025 13:51:25 +0000 (22:51 +0900)
Lib/test/test_json/test_scanstring.py

index cca556a3b95bab71834857da3cfa25a5b0f708fd..9a6cdfe12d266c0ef3944be099d394f22bb440bf 100644 (file)
@@ -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