summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-06-13 14:08:30 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-06-13 14:08:30 +0200
commitf9ec18e5729387f72ad681d63baa17f861bf4839 (patch)
tree94ddc56c55069c6af2a0f8cfe630f811046a8d40
parent2dcd3b98575cb1c20b1c850230441b8de6d4d0af (diff)
downloadpep8-f9ec18e5729387f72ad681d63baa17f861bf4839.tar.gz
Fix testsuite not reporting failure count in some cases.
-rwxr-xr-xpep8.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pep8.py b/pep8.py
index a272a4d..1ba79e0 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1736,6 +1736,7 @@ class StyleGuide(object):
for code in codes:
if not report.counters.get(code):
errors += 1
+ report.total_errors += 1
print('%s: error %s not found' % (label, code))
if self.options.verbose and not errors:
print('%s: passed (%s)' %