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 152s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 514 in setup 152s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 160 in pytest_runtest_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/runner.py", line 242 in <lambda> 152s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341 in from_call 152s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 241 in call_and_report 152s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 126 in runtestprotocol 152s File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 113 in pytest_runtest_protocol 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/main.py", line 362 in pytest_runtestloop 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/main.py", line 337 in _main 152s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 283 in wrap_session 152s File "/usr/lib/python3/dist-packages/_pytest/main.py", line 330 in pytest_cmdline_main 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/config/__init__.py", line 175 in main 152s File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 201 in console_main 152s File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 9 in <module>
152s File "<frozen runpy>", line 88 in _run_code
152s File "<frozen runpy>", line 198 in _run_module_as_main
152s
152s Extension modules: numpy._core._multiarray_umath, numpy.linalg._umath_linalg, yaml._yaml, psutil._psutil_linux, psutil._psutil_posix, markupsafe._speedups, scipy._lib._ccallback_c, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, charset_normalizer.md, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg.cython_lapack, scipy.linalg._cythonized_array_utils, scipy.linalg._solve_toeplitz, scipy.linalg._decomp_lu_cython, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg._matfuncs_expm, scipy.linalg._linalg_pythran, scipy.linalg.cython_blas, scipy.linalg._decomp_update, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.linalg._propack._spropack, scipy.sparse.linalg._propack._dpropack, scipy.sparse.linalg._propack._cpropack, scipy.sparse.linalg._propack._zpropack, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy._lib._uarray._uarray, scipy.special._ufuncs_cxx, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, scipy.special._ellip_harm_2, scipy.fftpack.convolve, lxml._elementpath, lxml.etree, PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets, PyQt5.QtTest, zmq.backend.cython._zmq, tornado.speedups, PyQt5.QtSvg, PyQt5.QtPrintSupport (total: 61)
152s bash: line 1: 8826 Aborted $py -m pytest --verbosity=2
153s autopkgtest [08:08:17]: test command1: -----------------------]
153s command1 FAIL non-zero exit status 134
▸ test results <https://ci.debian.net/packages/n/napari-console/testing/amd64/59383781/#S6> ▾ Closing: summary <https://ci.debian.net/packages/n/napari-console/testing/amd64/59383781/#S7>
153s autopkgtest [08:08:17]: @@@@@@@@@@@@@@@@@@@@ summary

153s command1 FAIL non-zero exit status 134

I have other packages exhibiting this error; they all use python3-pytestqt.

Thanks,

Roland.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-31-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages python3-pytestqt depends on:
ii  python3         3.13.3-1
ii  python3-pluggy  1.5.0-1
ii  python3-pytest  8.3.5-2

Versions of packages python3-pytestqt recommends:
ii  python3-pyqt5  5.15.11+dfsg-2

Versions of packages python3-pytestqt suggests:
pn  python-pytestqt-doc  <none>

-- no debconf information
Thank you for using reportbug

Reply via email to