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

Attachment: signature.asc
Description: PGP signature

Reply via email to