From 0e2409d836c4ffe7e6fdde43d977d508ba7afed1 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Sat, 12 Nov 2016 11:16:08 -0800 Subject: [PATCH] Fix file compare scope error --- compiler/tests/testutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index 67a79d50..6c840f6d 100644 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -16,14 +16,14 @@ def isdiff(file1,file2): import debug import filecmp import difflib - check = filecmp.cmp(libname,golden) + check = filecmp.cmp(file1,file2) if not check: debug.info(2,"MISMATCH {0} {1}".format(file1,file2)) f1 = open(file1,"r") s1 = f1.readlines() f2 = open(file2,"r") s2 = f2.readlines() - for line in unified_diff(s1, s2): + for line in difflib.unified_diff(s1, s2): debug.error(line) else: debug.info(2,"MATCH {0} {1}".format(file1,file2))