gh-137821: Improve Argument Clinic definitions in the `_json` module (#140780)

This commit is contained in:
Donghee Na 2025-10-30 19:32:08 +09:00 committed by GitHub
parent dbe3950a76
commit c45e6e1bb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 59 additions and 47 deletions

View file

@ -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