Skip to content

Commit d61aa37

Browse files
committed
Update QtWebEngineCore test
1 parent 8a79101 commit d61aa37

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

qtpy/tests/test_qtwebenginewidgets.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import pytest
2+
from packaging import version
23

3-
from qtpy import PYQT6, PYSIDE6
4+
from qtpy import PYQT6, PYQT_VERSION, PYSIDE6, PYSIDE_VERSION
45

56

67
@pytest.mark.skipif(
7-
PYSIDE6 or PYQT6,
8+
not (
9+
(PYQT6 and version.parse(PYQT_VERSION) >= version.parse("6.2"))
10+
or (PYSIDE6 and version.parse(PYSIDE_VERSION) >= version.parse("6.2"))
11+
),
812
reason="Only available in Qt<6,>=6.2 bindings",
913
)
1014
def test_qtwebenginewidgets():

0 commit comments

Comments
 (0)