Skip to content

Commit a9dc78f

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 77f76b4 commit a9dc78f

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
@@ -460,6 +460,8 @@ def qt5_and_qt6_pairs():
460460
reason="$DISPLAY and $WAYLAND_DISPLAY are unset")
461461
@pytest.mark.parametrize('host, mpl', [*qt5_and_qt6_pairs()])
462462
def test_cross_Qt_imports(host, mpl):
463+
if sys.flags.optimize > 0 and 'PySide2' in {host, mpl}:
464+
pytest.xfail('PySide2 does not work optimized')
463465
try:
464466
proc = _run_helper(_impl_test_cross_Qt_imports, host, mpl,
465467
timeout=_test_timeout)

0 commit comments

Comments
 (0)