Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1a328 commit 747b849Copy full SHA for 747b849
1 file changed
lib/matplotlib/tests/test_coding_standards.py
@@ -1,5 +1,6 @@
1
from fnmatch import fnmatch
2
import os
3
+import sys
4
5
from nose.tools import assert_equal
6
import pep8
@@ -178,6 +179,11 @@ def test_pep8_conformance():
178
179
# The file should be a line separated list of filenames/directories
180
# as can be passed to the "pep8" tool's exclude list.
181
182
+ # Only run this test with Python 2 - the 2to3 tool generates non pep8
183
+ # compliant code.
184
+ if sys.version_info[0] != 2:
185
+ return
186
+
187
# to get a list of bad files, rather than the specific errors, add
188
# "reporter=pep8.FileReport" to the StyleGuide constructor.
189
pep8style = pep8.StyleGuide(quiet=False,
0 commit comments