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 e4ec9d5 commit 7869f0eCopy full SHA for 7869f0e
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