Skip to content

Commit 281393f

Browse files
authored
PR: Constraint pytest-qt to 4.4.0 (<4.5.0) when testing PySide2 (CI) (#521)
2 parents ad8d345 + 5470a0f commit 281393f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ eval "$(conda shell.bash hook)"
66
BINDING=$(echo "$1" | tr '[:lower:]' '[:upper:]')
77
QT_VERSION_VAR=${BINDING}_QT_VERSION
88

9+
# pytest-qt >=4.5.0 doesn't support PySide2
10+
if [ "${1}" = "pyside2" ]; then
11+
PYTESTQT_VERSION="<4.5.0"
12+
fi
13+
914
# pytest-qt >=4 doesn't support Qt <=5.9
1015
if [ "${!QT_VERSION_VAR:0:3}" = "5.9" ]; then
1116
PYTESTQT_VERSION="=3.3.0"

0 commit comments

Comments
 (0)