From 8b38c22c502c380f7c42e581690ca5c7f5fec2d6 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Thu, 18 Apr 2024 13:18:07 -0400 Subject: [PATCH] TST: wxcairo sometimes raises OSError on missing cairo libraries --- lib/matplotlib/tests/test_getattr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_getattr.py b/lib/matplotlib/tests/test_getattr.py index a34e82ed81ba..f0f5823600ca 100644 --- a/lib/matplotlib/tests/test_getattr.py +++ b/lib/matplotlib/tests/test_getattr.py @@ -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}')