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 ae7345b commit 9366eb4Copy full SHA for 9366eb4
1 file changed
lib/matplotlib/tests/test_coding_standards.py
@@ -258,6 +258,15 @@ def test_pep8_conformance_installed_files():
258
259
def test_pep8_conformance_examples():
260
mpldir = os.environ.get('MPL_REPO_DIR', None)
261
+ if mpldir is None:
262
+ # try and guess!
263
+ fp = os.getcwd()
264
+ while len(fp) > 2:
265
+ if os.path.isdir(os.path.join(fp, 'examples')):
266
+ mpldir = fp
267
+ break
268
+ fp, tail = os.path.split(fp)
269
+
270
if mpldir is None:
271
raise KnownFailureTest("can not find the examples, set env "
272
"MPL_REPO_DIR to point to the top-level path "
0 commit comments