summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-06 20:55:11 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-06 20:55:11 (GMT)
commit90493ab30cd746d9063ec4cb76ad24e77da34702 (patch)
tree514d2dbc6f7faf5386a26ebebbdbf16cc9dfb717 /Lib
parentdf6ff7bcca1d73b25c79ad61b64ab4d8c3462a8c (diff)
downloadcpython-90493ab30cd746d9063ec4cb76ad24e77da34702.zip
cpython-90493ab30cd746d9063ec4cb76ad24e77da34702.tar.gz
cpython-90493ab30cd746d9063ec4cb76ad24e77da34702.tar.bz2
Issue #25761: Improved error reporting about truncated pickle data in
C implementation of unpickler. UnpicklingError is now raised instead of AttributeError and ValueError in some cases.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_pickle.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py
index 36970fe..05203e5 100644
--- a/Lib/test/test_pickle.py
+++ b/Lib/test/test_pickle.py
@@ -139,8 +139,7 @@ if has_c_implementation:
class CUnpicklerTests(PyUnpicklerTests):
unpickler = _pickle.Unpickler
bad_stack_errors = (pickle.UnpicklingError,)
- truncated_errors = (pickle.UnpicklingError, EOFError,
- AttributeError, ValueError)
+ truncated_errors = (pickle.UnpicklingError,)
class CPicklerTests(PyPicklerTests):
pickler = _pickle.Pickler