Hi. Asking for some advice here, in python-netfilterqueue there is now:
export PYBUILD_TEST_ARGS=--ignore tests/conftest.py
but dh_auto-test still seems to use that file, see output below.
How do I make pytest (for both build and autopkgtest) really ignore that
file and not try to use it?
My reading of
https://wiki.debian.org/Python/Pybuild suggests it should
work.
/Simon
dh_auto_test
I: pybuild base:311: cd /builds/python-team/packages/python-netfilterqueue/debian/output/source_dir/.pybuild/cpython3_3.13/build; python3.13 -m pytest --ignore tests/conftest.py
ImportError while loading conftest '/builds/python-team/packages/python-netfilterqueue/debian/output/source_dir/.pybuild/cpython3_3.13/build/tests/conftest.py'.
tests/conftest.py:8: in <module>
import unshare # type: ignore
E ModuleNotFoundError: No module named 'unshare'
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=4:
cd /builds/python-team/packages/python-netfilterqueue/debian/output/source_dir/.pybuild/cpython3_3.13/build;
python3.13 -m pytest --ignore tests/conftest.py
--=-=-Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZ2/RFxQcc2ltb25Aam9z ZWZzc29uLm9yZwAKCRBRcisI/kdFohAUAP9w58oKKTEEeJm93YQi3wN+Hk+/tjEr lapeZo6c+aF+NwEAqtMaDMRO+l4JBVivr+0qbqJXq08ebCOnC2QLg0bzhQE=V2Io
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)