mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Check for trailing backslash. Fixes #593656.
This commit is contained in:
parent
8a8da798a5
commit
eb3f00aeeb
2 changed files with 9 additions and 5 deletions
|
@ -199,6 +199,7 @@ class AbstractPickleTests(unittest.TestCase):
|
|||
"'abc", # quote is not closed
|
||||
"'abc\"", # open quote and close quote don't match
|
||||
"'abc' ?", # junk after close quote
|
||||
"'\\'", # trailing backslash
|
||||
# some tests of the quoting rules
|
||||
#"'abc\"\''",
|
||||
#"'\\\\a\'\'\'\\\'\\\\\''",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue