Fix test offset after black moved code

This commit is contained in:
Anthony Sottile 2018-06-24 19:09:09 -07:00
parent cbaa7dd56a
commit f940967e23
1 changed files with 2 additions and 2 deletions

View File

@ -336,9 +336,9 @@ class TestSourceParsingAndCompiling(object):
def check(comp, name):
co = comp(self.source, name)
if not name:
expected = "codegen %s:%d>" % (mypath, mylineno + 2 + 3)
expected = "codegen %s:%d>" % (mypath, mylineno + 2 + 2)
else:
expected = "codegen %r %s:%d>" % (name, mypath, mylineno + 2 + 3)
expected = "codegen %r %s:%d>" % (name, mypath, mylineno + 2 + 2)
fn = co.co_filename
assert fn.endswith(expected)