Skip to content

Commit f80ff5c

Browse files
committed
ci: avoid PySide6 6.12.0 before Python 3.12
PySide6 6.12.0 drops a reference to None on every call to a method that returns nothing (e.g. QPainter.drawEllipse), so None's reference count keeps falling. Python 3.12+ is unaffected because None is immortal there; on 3.11 the count reaches zero during test_curvebenchmark2, which aborts the job with "Fatal Python error: none_dealloc". PySide6 6.11.2 does not have this bug.
1 parent f111f01 commit f80ff5c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/test-PySide6.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
3838
python -m pip install --upgrade pip
3939
python -m pip install ruff pytest
40-
pip install PySide6 qtpy numpy
40+
# PySide6 6.12.0 drops a reference to None on each void call: fatal before Python 3.12
41+
pip install "PySide6!=6.12.0; python_version < '3.12'" "PySide6; python_version >= '3.12'" qtpy numpy
4142
pip install .
4243
- name: Lint with Ruff
4344
run: ruff check --output-format=github qwt

0 commit comments

Comments
 (0)