summaryrefslogtreecommitdiff
path: root/testsuite/support.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-03-24 21:26:36 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-03-24 21:26:36 +0100
commitf531c26995f6bf2918efafcb78500631eed80d69 (patch)
treeb32e89aea85b92fb6281ee929a5eae1b132034c5 /testsuite/support.py
parente3813abe894d71bcebd699321ccd948a3800497d (diff)
downloadpep8-f531c26995f6bf2918efafcb78500631eed80d69.tar.gz
Avoid printing errors twice
Diffstat (limited to 'testsuite/support.py')
-rw-r--r--testsuite/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/support.py b/testsuite/support.py
index 907260c..d4acba6 100644
--- a/testsuite/support.py
+++ b/testsuite/support.py
@@ -37,7 +37,7 @@ class TestReport(StandardReport):
self.counters[code] -= 1
for code, extra in sorted(self.counters.items()):
if code not in self._benchmark_keys:
- if extra:
+ if extra and code in self.expected:
self.file_errors += 1
self.total_errors += 1
print('%s: error %s found too many times (+%d)' %