Fix missing fail when non-list item doesn't match.

This commit is contained in:
Matt Guthaus 2018-11-08 12:16:59 -08:00
parent 929eae4a23
commit dd5b2a5b59
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ class openram_test(unittest.TestCase):
if not self.isclose(k,data[k][i],golden_data[k][i],error_tolerance): if not self.isclose(k,data[k][i],golden_data[k][i],error_tolerance):
data_matches = False data_matches = False
else: 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: if not data_matches:
import pprint import pprint
data_string=pprint.pformat(data) data_string=pprint.pformat(data)