diff options
Diffstat (limited to 'testsuite/support.py')
-rw-r--r-- | testsuite/support.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/support.py b/testsuite/support.py index 5185005..003f181 100644 --- a/testsuite/support.py +++ b/testsuite/support.py @@ -3,7 +3,7 @@ import os.path import re import sys -from pep8 import Checker, BaseReport, StandardReport, readlines +from pycodestyle import Checker, BaseReport, StandardReport, readlines SELFTEST_REGEX = re.compile(r'\b(Okay|[EW]\d{3}):\s(.*)') ROOT_DIR = os.path.dirname(os.path.dirname(__file__)) @@ -16,6 +16,9 @@ class PseudoFile(list): def getvalue(self): return ''.join(self) + def flush(self): + pass + class TestReport(StandardReport): """Collect the results for the tests.""" @@ -116,7 +119,7 @@ def selftest(options): print("%s: %s" % (code, source)) else: count_failed += 1 - print("pep8.py: %s:" % error) + print("pycodestyle.py: %s:" % error) for line in checker.lines: print(line.rstrip()) return count_failed, count_all |