Skip to content

Commit 59c8a87

Browse files
authored
Merge pull request #23069 from tacaswell/fix_qt_failures
TST: forgive more failures on pyside2 / pyside6 cross imports
2 parents 9cf4611 + 5cf44f8 commit 59c8a87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/tests/test_backends_interactive.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,11 @@ def test_cross_Qt_imports():
362362
except subprocess.CalledProcessError as ex:
363363
# if segfault, carry on. We do try to warn the user they
364364
# are doing something that we do not expect to work
365-
if ex.returncode == -11:
365+
if ex.returncode == -signal.SIGSEGV:
366+
continue
367+
# We got the abort signal which is likely because the Qt5 /
368+
# Qt6 cross import is unhappy, carry on.
369+
elif ex.returncode == -signal.SIGABRT:
366370
continue
367371
raise
368372

0 commit comments

Comments
 (0)