Permalink
Browse files

Fix parallel testing by using the multi-process safe cbook.mkdirs

  • Loading branch information...
1 parent c73f180 commit 43ecd9a1f3c5bbd4a8258cc6145906d03bc44681 @mdboom committed May 22, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/matplotlib/testing/compare.py
@@ -12,6 +12,7 @@
from matplotlib.testing import image_util
from matplotlib import _png
from matplotlib import _get_configdir
+from matplotlib import cbook
from distutils import version
import hashlib
import math
@@ -105,7 +106,7 @@ def get_cache_dir():
cache_dir = os.path.join(configdir, 'test_cache')
if not os.path.exists(cache_dir):
try:
- os.makedirs(cache_dir)
+ cbook.mkdirs(cache_dir)
except IOError:
return None
if not os.access(cache_dir, os.W_OK):

0 comments on commit 43ecd9a

Please sign in to comment.