Skip to content

Commit

Permalink
Merge pull request #28100 from tacaswell/ci/fix_osx_tests
Browse files Browse the repository at this point in the history
TST: wxcairo sometimes raises OSError on missing cairo libraries
  • Loading branch information
timhoffm committed Apr 19, 2024
2 parents d419cb4 + 8b38c22 commit 199c31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_getattr.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_getattr(module_name):
"""
try:
module = import_module(module_name)
except (ImportError, RuntimeError) as e:
except (ImportError, RuntimeError, OSError) as e:
# Skip modules that cannot be imported due to missing dependencies
pytest.skip(f'Cannot import {module_name} due to {e}')

Expand Down

0 comments on commit 199c31f

Please sign in to comment.