Skip to content

Commit 777a9f7

Browse files
committed
TST: Skip PySide2 when running optimized
It doesn't seem to support it, and is not really updated by upstream.
1 parent f244add commit 777a9f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ def qt5_and_qt6_pairs():
462462
reason="$DISPLAY and $WAYLAND_DISPLAY are unset")
463463
@pytest.mark.parametrize('host, mpl', [*qt5_and_qt6_pairs()])
464464
def test_cross_Qt_imports(host, mpl):
465+
if sys.flags.optimize > 0 and 'PySide2' in {host, mpl}:
466+
pytest.xfail('PySide2 does not work optimized')
465467
try:
466468
proc = _run_helper(_impl_test_cross_Qt_imports, host, mpl,
467469
timeout=_test_timeout)

0 commit comments

Comments
 (0)