Author: Philip Jenvey <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit