mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 21:04: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
|
#: E704:10
|
||||||
def f(x): return 2 * x
|
def f(x): return 2 * x
|
||||||
while all is round:
|
while all is round:
|
||||||
#: E704:10
|
#: E704:14
|
||||||
def f(x): return 2 * x
|
def f(x): return 2 * x
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#: E731:4
|
#: E731:4
|
||||||
f = lambda x: 2 * x
|
f = lambda x: 2 * x
|
||||||
while False:
|
while False:
|
||||||
#: E731:6
|
#: E731:10
|
||||||
foo = lambda y, z: 2 * x
|
foo = lambda y, z: 2 * x
|
||||||
# Okay
|
# Okay
|
||||||
f = object()
|
f = object()
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ def collect_errors(code):
|
|||||||
column = len(match.group(1))
|
column = len(match.group(1))
|
||||||
if ':' in code:
|
if ':' in code:
|
||||||
code, _, add_indent = code.partition(':')
|
code, _, add_indent = code.partition(':')
|
||||||
column += int(add_indent)
|
column = int(add_indent)
|
||||||
|
|
||||||
yield "%s@(%s,%s)" % (code, line_nr + 1, column)
|
yield "%s@(%s,%s)" % (code, line_nr + 1, column)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user