summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-08-30 21:39:34 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-08-30 21:39:34 (GMT)
commite897e95880fc8688fd65c9a0df2d58a1817947ba (patch)
treeab2ee0b1c7a1e45ace4cda936562d466bf92b9d6 /Lib
parentfaecc3880971eb916c6769e443adfeca4d474218 (diff)
downloadcpython-e897e95880fc8688fd65c9a0df2d58a1817947ba.zip
cpython-e897e95880fc8688fd65c9a0df2d58a1817947ba.tar.gz
cpython-e897e95880fc8688fd65c9a0df2d58a1817947ba.tar.bz2
Try to fix one of the bigmem tests in test_pickle
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/pickletester.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index 6dc2b5b..c2ed0d2 100644
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -1199,11 +1199,16 @@ class BigmemPickleTests(unittest.TestCase):
finally:
data = None
+ # BINUNICODE (protocols 1, 2 and 3) cannot carry more than
+ # 2**32 - 1 bytes of utf-8 encoded unicode.
+
@precisionbigmemtest(size=_4G, memuse=1 + character_size, dry_run=False)
def test_huge_str_64b(self, size):
data = "a" * size
try:
for proto in protocols:
+ if proto == 0:
+ continue
with self.assertRaises((ValueError, OverflowError)):
self.dumps(data, protocol=proto)
finally: