From 6ad808d7ca7e7d7f7337777adce035748cf80722 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 19 May 2022 16:20:49 -0400 Subject: [PATCH] Backport PR #23069: TST: forgive more failures on pyside2 / pyside6 cross imports --- lib/matplotlib/tests/test_backends_interactive.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_backends_interactive.py b/lib/matplotlib/tests/test_backends_interactive.py index 64a0d1ba1e93..e484807789d4 100644 --- a/lib/matplotlib/tests/test_backends_interactive.py +++ b/lib/matplotlib/tests/test_backends_interactive.py @@ -350,7 +350,11 @@ def test_cross_Qt_imports(): except subprocess.CalledProcessError as ex: # if segfault, carry on. We do try to warn the user they # are doing something that we do not expect to work - if ex.returncode == -11: + if ex.returncode == -signal.SIGSEGV: + continue + # We got the abort signal which is likely because the Qt5 / + # Qt6 cross import is unhappy, carry on. + elif ex.returncode == -signal.SIGABRT: continue raise