Skip to content

Commit 2392e81

Browse files
committed
PySide6/pytest: skipping QtDesigner plugin test
1 parent f746b4d commit 2392e81

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

plotpy/tests/gui/test_qtdesigner.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@
1515

1616
import os
1717

18+
import pytest
1819
from guidata.qthelpers import qt_app_context
1920

2021
from plotpy.builder import make
2122
from plotpy.tests import data as ptd
22-
from plotpy.widgets.qtdesigner import loadui
23+
24+
try:
25+
from plotpy.widgets.qtdesigner import loadui
26+
except ImportError:
27+
# PySide6 known to fail
28+
pytest.skip(
29+
"PySide6 does not support QPyDesignerCustomWidgetPlugin",
30+
allow_module_level=True,
31+
)
2332

2433
FormClass = loadui(os.path.splitext(__file__)[0] + ".ui")
2534

0 commit comments

Comments
 (0)