From 077e6436192f5aaae6c942b5bee834f06a5264b7 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 19 Apr 2024 21:43:16 +0200 Subject: [PATCH] Backport PR #28100: 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}')
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: