diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-06 20:55:11 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-06 20:55:11 (GMT) |
| commit | 90493ab30cd746d9063ec4cb76ad24e77da34702 (patch) | |
| tree | 514d2dbc6f7faf5386a26ebebbdbf16cc9dfb717 /Lib/test | |
| parent | df6ff7bcca1d73b25c79ad61b64ab4d8c3462a8c (diff) | |
| download | cpython-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/test')
| -rw-r--r-- | Lib/test/test_pickle.py | 3 |
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 |
