Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@mdboom
Owner

As referenced in #2046.

@pelson pelson merged commit 600e981 into from
@mdboom mdboom deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/matplotlib/testing/compare.py
View
3  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):
Something went wrong with that request. Please try again.