Skip to content

Commit 154f6c7

Browse files
committed
Skip QEnum test for PySide2 < 5.15
1 parent 754e085 commit 154f6c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

qtpy/tests/test_qtcore.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@
55
from datetime import date, datetime, time
66

77
import pytest
8+
from packaging.version import parse
89

910
from qtpy import (
1011
PYQT5,
1112
PYQT6,
1213
PYSIDE2,
13-
PYSIDE6,
1414
PYQT_VERSION,
1515
PYSIDE_VERSION,
1616
QtCore,
1717
)
18-
from qtpy.tests.utils import not_using_conda
1918

2019
_now = datetime.now()
2120
# Make integer milliseconds; `floor` here, don't `round`!
@@ -71,6 +70,8 @@ def test_qthread_exec():
7170
assert QtCore.QThread.exec is not None
7271

7372

73+
@pytest.mark.skipif(PYSIDE2 and parse(PYSIDE_VERSION) < parse("5.15"),
74+
reason="QEnum macro doesn't seem to be present on PySide2 <5.15")
7475
def test_qenum():
7576
"""Test QEnum macro"""
7677
class EnumTest(QtCore.QObject):

0 commit comments

Comments
 (0)