Skip to content

Commit dbd543e

Browse files
committed
pep8: there are no exp. bad files for the examples
1 parent 1171a96 commit dbd543e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/matplotlib/tests/test_coding_standards.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def assert_pep8_conformance(module=matplotlib, exclude_files=EXCLUDE_FILES,
195195
extra_exclude_file=EXTRA_EXCLUDE_FILE,
196196
extra_exclude_directories=None,
197197
pep8_additional_ignore=PEP8_ADDITIONAL_IGNORE,
198-
dirname=None):
198+
dirname=None, expected_bad_files=None):
199199
"""
200200
Tests the matplotlib codebase against the "pep8" tool.
201201
@@ -215,6 +215,10 @@ def assert_pep8_conformance(module=matplotlib, exclude_files=EXCLUDE_FILES,
215215
reporter=StandardReportWithExclusions)
216216
reporter = pep8style.options.reporter
217217

218+
if expected_bad_files is not None:
219+
reporter.expected_bad_files = expected_bad_files
220+
221+
218222
# Extend the number of PEP8 guidelines which are not checked.
219223
pep8style.options.ignore = (pep8style.options.ignore +
220224
tuple(pep8_additional_ignore))
@@ -285,7 +289,8 @@ def test_pep8_conformance_examples():
285289
'user_interfaces',
286290
'widgets']
287291
assert_pep8_conformance(dirname=exdir,
288-
extra_exclude_directories=blacklist)
292+
extra_exclude_directories=blacklist,
293+
expected_bad_files=[])
289294

290295

291296
if __name__ == '__main__':

0 commit comments

Comments
 (0)