Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d114237

Browse filesBrowse files
committed
Merge pull request #5273 from mdboom/no-tests
Provide message if test data is not installed
1 parent 6af9d4f commit d114237
Copy full SHA for d114237

File tree

Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,9 @@ def tk_window_focus():
14841484

14851485

14861486
def verify_test_dependencies():
1487+
if not os.path.isdir(os.path.join(os.path.dirname(__file__), 'tests')):
1488+
raise ImportError("matplotlib test data is not installed")
1489+
14871490
try:
14881491
import nose
14891492
try:

‎tests.py

Copy file name to clipboardExpand all lines: tests.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ def run(extra_args):
4545
else:
4646
faulthandler.enable()
4747

48+
if not os.path.isdir(
49+
os.path.join(os.path.dirname(matplotlib.__file__), 'tests')):
50+
raise ImportError("matplotlib test data is not installed")
51+
4852
nose.main(addplugins=[x() for x in plugins],
4953
defaultTest=default_test_modules,
5054
argv=sys.argv + extra_args)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.