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 6d1da2d commit f863621Copy full SHA for f863621
lib/matplotlib/testing/_conversion_cache.py
@@ -191,7 +191,7 @@ def ensure_cache_dir(self):
191
if not os.path.exists(self.cachedir):
192
try:
193
cbook.mkdirs(self.cachedir)
194
- except IOError as e:
+ except OSError as e:
195
raise _CacheError("Error creating cache directory %s: %s"
196
% (self.cachedir, str(e)))
197
if not os.access(self.cachedir, os.W_OK):
lib/matplotlib/tests/test_cache.py
@@ -103,7 +103,7 @@ def test_cache_default_dir():
103
104
@raises(_CacheError)
105
@mock.patch('matplotlib.testing._conversion_cache.cbook.mkdirs',
106
- side_effect=IOError)
+ side_effect=OSError)
107
def test_cache_mkdir_error(mkdirs):
108
tmpdir = tempfile.mkdtemp()
109
0 commit comments