diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-04-15 19:51:09 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-04-15 19:51:09 (GMT) |
commit | 3034efdd298ad5f94a61f9f0e8ab0fee1d2d212e (patch) | |
tree | 42236d2d7518cd4f214de096919718811e7ad3fa /Lib/test/pickletester.py | |
parent | ed3cd7e445e7be413d1b454471454f7ff9f21f1f (diff) | |
download | cpython-3034efdd298ad5f94a61f9f0e8ab0fee1d2d212e.zip cpython-3034efdd298ad5f94a61f9f0e8ab0fee1d2d212e.tar.gz cpython-3034efdd298ad5f94a61f9f0e8ab0fee1d2d212e.tar.bz2 |
Issue #17710: Fix pickle raising a SystemError on bogus input.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r-- | Lib/test/pickletester.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 5d12375..a72ab37 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -609,6 +609,14 @@ class AbstractPickleTests(unittest.TestCase): b"'abc\"", # open quote and close quote don't match b"'abc' ?", # junk after close quote b"'\\'", # trailing backslash + # Variations on issue #17710 + b"'", + b'"', + b"' ", + b"' ", + b"' ", + b"' ", + b'" ', # some tests of the quoting rules ## b"'abc\"\''", ## b"'\\\\a\'\'\'\\\'\\\\\''", |