File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
5
5
if (base_path := os .environ .get ("MPLTESTIMAGEPATH" , None )) is None :
6
- base_path = Path (__file__ ).parent
6
+ base_path = Path (__file__ ).parent / 'baseline_images'
7
7
else :
8
- base_path = Path (base_path ) / 'matplotlib' / 'tests'
8
+ base_path = Path (base_path ) / 'matplotlib' / 'tests' / 'baseline_images'
9
+
9
10
10
11
# Check that the test directories exist.
11
- if not (base_path / 'baseline_images' ).exists ():
12
+ if not (base_path ).exists ():
12
13
raise OSError (
13
- 'The baseline image directory does not exist. '
14
+ f 'The baseline image directory ( { base_path !r } ) does not exist. '
14
15
'This is most likely because the test data is not installed. '
15
16
'You may need to install matplotlib from source to get the '
16
17
'test data.' )
18
+
19
+ del base_path
You can’t perform that action at this time.
0 commit comments