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.
2 parents 8fa0f35 + 7869f0e commit e979bdfCopy full SHA for e979bdf
lib/matplotlib/tests/__init__.py
@@ -2,13 +2,24 @@
2
from matplotlib import rcParams, rcdefaults, use
3
4
import difflib
5
+import os
6
7
8
9
10
_multiprocess_can_split_ = True
11
12
13
+# Check that the test directories exist
14
+if not os.path.exists(os.path.join(
15
+ os.path.dirname(__file__), 'baseline_images')):
16
+ raise IOError(
17
+ 'The baseline image directory does not exist. '
18
+ 'This is most likely because the test data is not installed. '
19
+ 'You may need to install matplotlib from source to get the '
20
+ 'test data.')
21
+
22
23
def setup():
24
# The baseline images are created in this locale, so we should use
25
# it during all of the tests.
0 commit comments