Skip to content

Commit f531c26

Browse files
committed
Avoid printing errors twice
1 parent e3813ab commit f531c26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testsuite/support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def get_file_results(self):
3737
self.counters[code] -= 1
3838
for code, extra in sorted(self.counters.items()):
3939
if code not in self._benchmark_keys:
40-
if extra:
40+
if extra and code in self.expected:
4141
self.file_errors += 1
4242
self.total_errors += 1
4343
print('%s: error %s found too many times (+%d)' %

0 commit comments

Comments
 (0)