Make the normalizer tests' indentation easier to understand.

This commit is contained in:
Dave Halter
2017-06-06 08:56:55 +02:00
parent ebf5850cb9
commit 7d99b8e823
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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)