[med-svn] [Git][med-team/python-mne][master] debian/tests: invoke pytest via python3 -m pytest

Karsten Schöke (@karso) gitlab at salsa.debian.org
Mon Oct 5 13:48:16 BST 2026



Karsten Schöke pushed to branch master at Debian Med / python-mne


Commits:
7df51142 by Karsten Schöke at 2026-10-05T14:47:54+02:00
debian/tests: invoke pytest via python3 -m pytest

Some environments shadow the bare "pytest" command with another binary
(e.g. from scipy) that only understands "--force" and "version", so the
selection options (-k / --deselect) are rejected with:

    pytest: error: unrecognized arguments: -k not test_parallel_func_n_jobs_none ...

Use "python3 -m pytest" instead so the distro/venv module is always
executed and the architecture-specific filters work reliably in
autopkgtest across all buildds.

- - - - -


2 changed files:

- debian/changelog
- debian/tests/python-tests


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-mne (1.13.2-5) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * debian/tests: invoke pytest via python3 -m pytest
+
+ -- Karsten Schöke <karsten.schoeke at geobasis-bb.de>  Mon, 05 Oct 2026 14:47:24 +0200
+
 python-mne (1.13.2-4) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/tests/python-tests
=====================================
@@ -47,4 +47,4 @@ xvfb-run \
     --auto-servernum \
     --server-num=20 \
     -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" \
-    pytest mne -k "not test_parallel_func_n_jobs_none and not test_qt_block_sigint${KEXTRA}" "$DESELECT"
+    python3 -m pytest mne -k "not test_parallel_func_n_jobs_none and not test_qt_block_sigint${KEXTRA}" "$DESELECT"



View it on GitLab: https://salsa.debian.org/med-team/python-mne/-/commit/7df51142c8e87687710dadc8545c6f2a74868204

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-mne/-/commit/7df51142c8e87687710dadc8545c6f2a74868204
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261005/711ef3a2/attachment-0001.htm>


More information about the debian-med-commit mailing list