Closed as not planned
Description
After installing pyqt6 and pytest-qt, the following test causes a segfault on Linux, but it works fine on Windows.
Code:
def test(qtbot):
pass
Output:
[...]
test.py Fatal Python error: Aborted
Current thread 0x00007fca866cdb80 (most recent call first):
File "/usr/local/lib/python3.11/site-packages/pytestqt/plugin.py", line 76 in qapp
File "/usr/local/lib/python3.11/site-packages/_pytest/fixtures.py", line 913 in call_fixture_func
[...]
Extension modules: PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtWidgets, PyQt6.QtTest (total: 4)
Aborted
Without the qtbot
fixture, it passes.
Repo with CI script reproducing the issue: https://gitlab.com/NMertsch/qtbot-bug-repro
WSL Linux (crash)
- Ubuntu 22.04.3
- Python 3.11.0rc1
- PyQt6 6.6.1
- pytest-qt 4.4.0
Gitlab CI (crash)
- Docker Image
python:3.11
- Debian 12
- Python 3.11.8
- PyQt6 6.6.1
- pytest-qt 4.4.0
Windows (works)
- Windows 11
- Python 3.11.8 (installed via Microsoft Store)
- PyQt6 6.6.1
- pytest-qt 4.4.0
Metadata
Metadata
Assignees
Labels
No labels