[pypy-commit] pypy stdlib-2.7.12: cPickle triggers IndexError too

pjenvey pypy.commits at gmail.com
Sun Oct 2 18:42:49 EDT 2016


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: stdlib-2.7.12
Changeset: r87530:774253c33e4c
Date: 2016-10-02 15:42 -0700
http://bitbucket.org/pypy/pypy/changeset/774253c33e4c/

Log:	cPickle triggers IndexError too

diff --git a/lib-python/2.7/test/test_cpickle.py b/lib-python/2.7/test/test_cpickle.py
--- a/lib-python/2.7/test/test_cpickle.py
+++ b/lib-python/2.7/test/test_cpickle.py
@@ -53,7 +53,7 @@
     error = cPickle.BadPickleGet
     module = cPickle
     if test_support.check_impl_detail(pypy=True):
-        bad_stack_errors = PickleTests.bad_stack_errors
+        bad_stack_errors = (IndexError, cPickle.UnpicklingError)
         bad_mark_errors = PickleTests.bad_mark_errors
         truncated_errors = PickleTests.truncated_errors
     else:
@@ -74,7 +74,7 @@
 
     error = cPickle.BadPickleGet
     if test_support.check_impl_detail(pypy=True):
-        bad_stack_errors = UnpicklerTests.bad_stack_errors
+        bad_stack_errors = (IndexError, cPickle.UnpicklingError)
         bad_mark_errors = UnpicklerTests.bad_mark_errors
         truncated_errors = UnpicklerTests.truncated_errors
     else:


More information about the pypy-commit mailing list