summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2013-02-10 00:56:20 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2013-02-10 00:56:20 +0100
commit1dbd8903d74a93ed696a0707cb45cce1bd383b44 (patch)
treeabf0776319b5f09e3b45c606830c9d15ea5061de /testsuite
parent7d949739ab2fb486516da1a5c310882915db8900 (diff)
downloadpep8-1dbd8903d74a93ed696a0707cb45cce1bd383b44.tar.gz
Release version 1.4.21.4.2
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/test_pep8.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/test_pep8.py b/testsuite/test_pep8.py
index 90ceef3..7b57781 100644
--- a/testsuite/test_pep8.py
+++ b/testsuite/test_pep8.py
@@ -137,7 +137,7 @@ def selftest(options):
print("%s: %s" % (code, source))
else:
count_failed += 1
- print("%s: %s:" % (__file__, error))
+ print("%s: %s:" % (pep8.__file__, error))
for line in checker.lines:
print(line.rstrip())
return count_failed, count_all
@@ -165,6 +165,6 @@ if __name__ == '__main__':
if len(sys.argv) > 1:
sys.exit(pep8._main())
pep8style = StyleGuide(paths=[os.path.dirname(__file__)], ignore=None)
- report = run_tests(pep8style, True, True)
+ report = run_tests(pep8style, doctest=True, testsuite=True)
report.print_results()
sys.exit(1 if report.total_errors else 0)