Package: python3-pytestqt
Version: 4.4.0-1
Severity: important
Dear Maintainer,
Several packages using python3-pytestqt fail with "Fatal Python error: Aborted" during their autopkgtest runs; by tweaking the pytest
invocation, I've been able to track down the problem to this package. To reproduce, fetch, for instance, the "napari-console" source package (currently at version 0.1.3-1). Add the following two lines to the top
of debian/rules
export PYBUILD_TEST_CUSTOM=1
export PYBUILD_TEST_ARGS={interpreter} -X faulthandler -m pytest -p no:faulthandler -v
Then run the build and the autopkgtest, you should see the error happen.
It does happen on my desktop computer with a cowbuilder chroot, and on
the Debian CI infrastructure. From the latter (https://ci.debian.net/packages/n/napari-console/testing/amd64/59383781/):
151s autopkgtest [08:08:15]: test command1: [-----------------------
151s Testing with python3.13:
152s ============================= test session starts ==============================
152s platform linux -- Python 3.13.2, pytest-8.3.5, pluggy-1.5.0 -- /usr/bin/python3.13
152s cachedir: .pytest_cache
152s PyQt5 5.15.11 -- Qt runtime 5.15.15 -- Qt compiled 5.15.15
152s rootdir: /tmp/autopkgtest-lxc.0y1wz5tp/downtmp/autopkgtest_tmp
152s plugins: qt-4.4.0, napari-0.5.6, npe2-0.7.8, napari-plugin-engine-0.2.0, typeguard-4.4.2
152s collecting ... collected 5 items
152s
152s _tests/test_qt_console.py::test_console Fatal Python error: Aborted
152s
152s Current thread 0x00007fa67f460100 (most recent call first):
152s File "/usr/lib/python3/dist-packages/pytestqt/plugin.py", line 76
in qapp
152s File "/usr/lib/python3/dist-packages/_pytest/fixtures.py", line 898
in call_fixture_func
152s File "/usr/lib/python3/dist-packages/_pytest/fixtures.py", line
1140 in pytest_fixture_setup
152s File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 103
in _multicall
152s File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 120
in _hookexec
152s File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 513 in __call__
152s File "/usr/lib/python3/dist-packages/_pytest/fixtures.py", line
1091 in execute
152s File "/usr/lib/python3/dist-packages/_pytest/fixtures.py", line 617
in _get_active_fixturedef
152s File "/usr/lib/python3/dist-packages/_pytest/fixtures.py", line 532
in getfixturevalue
152s File "/usr/lib/python3/dist-packages/_pytest/fixtures.py", line 697
in _fillfixtures
152s File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1630
in setup
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (3 / 13) |
Uptime: | 05:46:50 |
Calls: | 10,388 |
Calls today: | 3 |
Files: | 14,061 |
Messages: | 6,416,799 |