From dd5b2a5b59cd25a8a449761fa7ead84bfaf33a8b Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Thu, 8 Nov 2018 12:16:59 -0800 Subject: [PATCH] Fix missing fail when non-list item doesn't match. --- compiler/tests/testutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index 78db41cb..39376202 100755 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -77,7 +77,8 @@ class openram_test(unittest.TestCase): if not self.isclose(k,data[k][i],golden_data[k][i],error_tolerance): data_matches = False else: - self.isclose(k,data[k],golden_data[k],error_tolerance) + if not self.isclose(k,data[k],golden_data[k],error_tolerance): + data_matches = False if not data_matches: import pprint data_string=pprint.pformat(data)