Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcf527e + b0ef785 commit 0b2a6dcCopy full SHA for 0b2a6dc
1 file changed
Lib/test/test_json/test_encode_basestring_ascii.py
@@ -42,6 +42,7 @@ class TestPyEncodeBasestringAscii(TestEncodeBasestringAscii, PyTest): pass
42
class TestCEncodeBasestringAscii(TestEncodeBasestringAscii, CTest):
43
@bigaddrspacetest
44
def test_overflow(self):
45
- s = "\uffff"*((2**32)//6 + 1)
+ size = (2**32)//6 + 1
46
+ s = "\x00"*size
47
with self.assertRaises(OverflowError):
48
self.json.encoder.encode_basestring_ascii(s)
0 commit comments