8000
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 2fe7715 commit 33493f7Copy full SHA for 33493f7
lib/matplotlib/__init__.py
@@ -1449,8 +1449,21 @@ def tk_window_focus():
1449
]
1450
1451
1452
+def verify_test_dependencies():
1453
+ try:
1454
+ import nose
1455
1456
+ from unittest import mock
1457
+ except:
1458
+ import mock
1459
+ except ImportError:
1460
+ print("matplotlib.test requires nose and mock to run.")
1461
+ raise
1462
+
1463
1464
def test(verbosity=1):
1465
"""run the matplotlib test suite"""
1466
+ verify_test_dependencies()
1467
try:
1468
import faulthandler
1469
except ImportError:
0 commit comments