We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 333136b commit 2469db5Copy full SHA for 2469db5
2 files changed
lib/matplotlib/__init__.py
@@ -1484,6 +1484,9 @@ def tk_window_focus():
1484
1485
1486
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
+
1490
try:
1491
import nose
1492
tests.py
@@ -45,6 +45,10 @@ def run(extra_args):
45
else:
46
faulthandler.enable()
47
48
+ if not os.path.isdir(
49
+ os.path.join(os.path.dirname(matplotlib.__file__), 'tests')):
50
51
52
nose.main(addplugins=[x() for x in plugins],
53
defaultTest=default_test_modules,
54
argv=sys.argv + extra_args)
0 commit comments