Skip to content

Commit 8b38c22

Browse files
committed
TST: wxcairo sometimes raises OSError on missing cairo libraries
1 parent 2723052 commit 8b38c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_getattr.py

Lines changed: 1 addition & 1 deletion
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)