diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-23 13:17:43 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-23 13:17:43 (GMT) |
commit | e9b3074cf931fee3cb91638cbdd694fa9eb9614b (patch) | |
tree | 15dcac1d410ece6390346e8d58a4b416d5dd37f4 /Lib/test/test_pickle.py | |
parent | b6aa5375d5a2f81370338357506034befe62aa31 (diff) | |
download | cpython-e9b3074cf931fee3cb91638cbdd694fa9eb9614b.zip cpython-e9b3074cf931fee3cb91638cbdd694fa9eb9614b.tar.gz cpython-e9b3074cf931fee3cb91638cbdd694fa9eb9614b.tar.bz2 |
Issue #23914: Fixed SystemError raised by unpickler on broken pickle data.
Diffstat (limited to 'Lib/test/test_pickle.py')
-rw-r--r-- | Lib/test/test_pickle.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py index 8dc93d2..f04c5ac 100644 --- a/Lib/test/test_pickle.py +++ b/Lib/test/test_pickle.py @@ -32,6 +32,7 @@ class PickleTests(AbstractPickleModuleTests): class PyUnpicklerTests(AbstractUnpickleTests): unpickler = pickle._Unpickler + bad_stack_errors = (IndexError,) def loads(self, buf, **kwds): f = io.BytesIO(buf) @@ -62,6 +63,7 @@ class InMemoryPickleTests(AbstractPickleTests, AbstractUnpickleTests, pickler = pickle._Pickler unpickler = pickle._Unpickler + bad_stack_errors = (pickle.UnpicklingError, IndexError) def dumps(self, arg, protocol=None): return pickle.dumps(arg, protocol) @@ -119,6 +121,7 @@ class PyChainDispatchTableTests(AbstractDispatchTableTests): if has_c_implementation: class CUnpicklerTests(PyUnpicklerTests): unpickler = _pickle.Unpickler + bad_stack_errors = (pickle.UnpicklingError,) class CPicklerTests(PyPicklerTests): pickler = _pickle.Pickler |