Skip to content

Commit 199c31f

Browse files
authored
Merge pull request matplotlib#28100 from tacaswell/ci/fix_osx_tests
TST: wxcairo sometimes raises OSError on missing cairo libraries
2 parents d419cb4 + 8b38c22 commit 199c31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/matplotlib/tests/test_getattr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_getattr(module_name):
2626
"""
2727
try:
2828
module = import_module(module_name)
29-
except (ImportError, RuntimeError) as e:
29+
except (ImportError, RuntimeError, OSError) as e:
3030
# Skip modules that cannot be imported due to missing dependencies
3131
pytest.skip(f'Cannot import {module_name} due to {e}')
3232

0 commit comments

Comments
 (0)