Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af6c607

Browse files
committed
correct current skipping of pep8 tests for nose test discovery
1 parent de8a919 commit af6c607

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/matplotlib/tests/test_coding_standards.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ def get_file_results(self):
188188
return self.file_errors
189189

190190

191-
def test_pep8_conformance(module=matplotlib, exclude_files=EXCLUDE_FILES,
192-
extra_exclude_file=EXTRA_EXCLUDE_FILE,
193-
pep8_additional_ignore=PEP8_ADDITIONAL_IGNORE):
191+
def assert_pep8_conformance(module=matplotlib, exclude_files=EXCLUDE_FILES,
192+
extra_exclude_file=EXTRA_EXCLUDE_FILE,
193+
pep8_additional_ignore=PEP8_ADDITIONAL_IGNORE):
194194
"""
195195
Tests the matplotlib codebase against the "pep8" tool.
196196
@@ -246,8 +246,11 @@ def test_pep8_conformance(module=matplotlib, exclude_files=EXCLUDE_FILES,
246246
'{}'.format('\n '.join(unexpectedly_good)))
247247

248248

249+
## Temporarily disabling test
250+
#def test_pep8_conformance():
251+
# assert_pep8_conformance()
252+
253+
249254
if __name__ == '__main__':
250255
import nose
251-
# Temporarily disabling test
252-
raise nose.SkipTest('Test is disabled in the code')
253256
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)

0 commit comments

Comments
 (0)