summaryrefslogtreecommitdiff
path: root/Lib/test/pickletester.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-04-15 21:55:14 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-04-15 21:55:14 +0200
commitaf94051a933b7fbd9c63b0a45cfba5247d92ac14 (patch)
tree4a1d2acfb1267176d395e7e92c4a7fac6d57b3a8 /Lib/test/pickletester.py
parentacfc454c10ab2fe5dafd4c90a15eaae8cef214c2 (diff)
parent3034efdd298ad5f94a61f9f0e8ab0fee1d2d212e (diff)
downloadcpython-git-af94051a933b7fbd9c63b0a45cfba5247d92ac14.tar.gz
Issue #17710: Fix pickle raising a SystemError on bogus input.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r--Lib/test/pickletester.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index 5d12375267..a72ab377c0 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\'\'\'\\\'\\\\\''",