Skip to content

Commit

Permalink
PySide6/pytest: skipping QtDesigner plugin test
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Oct 10, 2023
1 parent f746b4d commit 2392e81
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion plotpy/tests/gui/test_qtdesigner.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@

import os

import pytest
from guidata.qthelpers import qt_app_context

from plotpy.builder import make
from plotpy.tests import data as ptd
from plotpy.widgets.qtdesigner import loadui

try:
from plotpy.widgets.qtdesigner import loadui
except ImportError:
# PySide6 known to fail
pytest.skip(
"PySide6 does not support QPyDesignerCustomWidgetPlugin",
allow_module_level=True,
)

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

Expand Down

0 comments on commit 2392e81

Please sign in to comment.