8000 Fix parallel testing by using the multi-process safe cbook.mkdirs · matplotlib/matplotlib@43ecd9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 43ecd9a

Browse files
committed
Fix parallel testing by using the multi-process safe cbook.mkdirs
1 parent c73f180 com
8000
mit 43ecd9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from matplotlib.testing import image_util
1313
from matplotlib import _png
1414
from matplotlib import _get_configdir
15+
from matplotlib import cbook
1516
from distutils import version
1617
import hashlib
1718
import math
@@ -105,7 +106,7 @@ def get_cache_dir():
105106
cache_dir = os.path.join(configdir, 'test_cache')
106107
if not os.path.exists(cache_dir):
107108
try:
108-
os.makedirs(cache_dir)
109+
cbook.mkdirs(cache_dir)
109110
except IOError:
110111
return None
111112
if not os.access(cache_dir, os.W_OK):

0 commit comments

Comments
 (0)
0