Source: jupyterhub
Version: 5.2.1+ds1-2
Severity: normal
Dear Maintainer,
In order to improve the quality of the package it would be great if the unit test could be run during the build and via autopkgtest.
For now it fail with this error
I: pybuild base:311: cd /build/reproducible-path/jupyterhub-5.2.1+ds1/.pybuild/cpython3_3.13_jupyterhub/build; python3.13 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0 -- /usr/bin/python3.13
cachedir: .pytest_cache
rootdir: /build/reproducible-path/jupyterhub-5.2.1+ds1/.pybuild/cpython3_3.13_jupyterhub/build
configfile: pytest.ini
plugins: requests_mock-1.12.1, asyncio-0.25.1, typeguard-4.4.2
asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=module
collecting ... collected 1058 items / 1 error
==================================== ERRORS ====================================
__________________ ERROR collecting jupyterhub/tests/browser ___________________
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1387: in _gcd_import
???
<frozen importlib._bootstrap>:1360: in _find_and_load
???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:935: in _load_unlocked
???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:185: in exec_module
exec(co, module.__dict__)
jupyterhub/tests/browser/conftest.py:4: in <module>
from playwright.async_api import async_playwright
E ModuleNotFoundError: No module named 'playwright' =============================== warnings summary ===============================
jupyterhub/tests/test_proxy.py:31
/build/reproducible-path/jupyterhub-5.2.1+ds1/.pybuild/cpython3_3.13_jupyterhub/build/jupyterhub/tests/test_proxy.py:31: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - is this a typo? You can register custom marks to avoid this warning - for
details, see
https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.flaky(reruns=2)
-- Docs:
https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
ERROR jupyterhub/tests/browser - ModuleNotFoundError: No module named 'playwright'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
So the python3-playwright package should be added first.
thanks
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.22-amd64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)