mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 12:54:29 +08:00
Make the normalizer tests' indentation easier to understand.
This commit is contained in:
@@ -17,5 +17,5 @@ async def f(x): return 2
|
||||
#: E704:10
|
||||
def f(x): return 2 * x
|
||||
while all is round:
|
||||
#: E704:10
|
||||
#: E704:14
|
||||
def f(x): return 2 * x
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#: E731:4
|
||||
f = lambda x: 2 * x
|
||||
while False:
|
||||
#: E731:6
|
||||
#: E731:10
|
||||
foo = lambda y, z: 2 * x
|
||||
# Okay
|
||||
f = object()
|
||||
|
||||
@@ -18,7 +18,7 @@ def collect_errors(code):
|
||||
column = len(match.group(1))
|
||||
if ':' in code:
|
||||
code, _, add_indent = code.partition(':')
|
||||
column += int(add_indent)
|
||||
column = int(add_indent)
|
||||
|
||||
yield "%s@(%s,%s)" % (code, line_nr + 1, column)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user