mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
bpo-46091: Correctly calculate indentation levels for whitespace lines with continuation characters (GH-30130)
This commit is contained in:
parent
b1cb843050
commit
a0efc0c196
5 changed files with 165 additions and 16 deletions
|
@ -1078,8 +1078,7 @@ Module(
|
|||
ast.literal_eval(node)
|
||||
|
||||
def test_literal_eval_syntax_errors(self):
|
||||
msg = "unexpected character after line continuation character"
|
||||
with self.assertRaisesRegex(SyntaxError, msg):
|
||||
with self.assertRaisesRegex(SyntaxError, "unexpected indent"):
|
||||
ast.literal_eval(r'''
|
||||
\
|
||||
(\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue