| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| @@ -0,0 +1,2 @@ | |||
| Convert ``_json`` module to use Argument Clinic. | |||
There was a problem hiding this comment.
@StanFromIreland Moved.
Sorry, something went wrong.
| 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) |
There was a problem hiding this comment.
This was wrongly tested.
Sorry, something went wrong.
There was a problem hiding this comment.
See:
Python 3.11.6 (v3.11.6:8b6ee5ba3b, Oct 2 2023, 11:18:21) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import json >>> json.decoder.scanstring(b"xxx", 10) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: first argument must be a string, not bytes
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.