mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Issue #17710: Fix pickle raising a SystemError on bogus input.
This commit is contained in:
parent
ed3cd7e445
commit
3034efdd29
4 changed files with 15 additions and 5 deletions
|
|
@ -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\'\'\'\\\'\\\\\''",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue