Skip to content

Commit 077e643

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR matplotlib#28100: TST: wxcairo sometimes raises OSError on missing cairo libraries
1 parent 877ad96 commit 077e643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)