From 1c49e520131d2ac60c628b5186f89485d79cf581 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 34a6dc5d18d..7982cfa352e 100644 --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -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)