From f940967e232c42fb4d091aba514f44e115bcc40f Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 24 Jun 2018 19:09:09 -0700 Subject: [PATCH] Fix test offset after black moved code --- testing/code/test_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/code/test_source.py b/testing/code/test_source.py index 34a6dc5d1..7982cfa35 100644 --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -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)