Skip to content

Commit

Permalink
Fix test offset after black moved code
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jun 25, 2018
1 parent 520abb2 commit 1c49e52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/code/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ def test_compilefuncs_and_path_sanity(self, name):
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)

Expand Down

0 comments on commit 1c49e52

Please sign in to comment.