[Python-checkins] cpython (merge 3.3 -> 3.4): merge 3.3
benjamin.peterson
python-checkins at python.org
Mon Feb 2 23:47:39 CET 2015
https://hg.python.org/cpython/rev/b883bb8bd744
changeset: 94472:b883bb8bd744
branch: 3.4
parent: 94469:dc699f150fd3
parent: 94471:5c730d30ffbc
user: Benjamin Peterson <benjamin at python.org>
date: Mon Feb 02 17:47:26 2015 -0500
summary:
merge 3.3
files:
Lib/test/test_json/test_encode_basestring_ascii.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_json/test_encode_basestring_ascii.py b/Lib/test/test_json/test_encode_basestring_ascii.py
--- a/Lib/test/test_json/test_encode_basestring_ascii.py
+++ b/Lib/test/test_json/test_encode_basestring_ascii.py
@@ -45,6 +45,7 @@
class TestCEncodeBasestringAscii(TestEncodeBasestringAscii, CTest):
@bigaddrspacetest
def test_overflow(self):
- s = "\uffff"*((2**32)//6 + 1)
+ size = (2**32)//6 + 1
+ s = "\x00"*size
with self.assertRaises(OverflowError):
self.json.encoder.encode_basestring_ascii(s)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list