On Wed, Oct 30, 2024 at 12:28:27AM -0700, Soren Stoutner wrote: > > > If I disable it in debian/rules using the following command the test no > > > longer runs during build. > > > > > > export PYBUILD_TEST_ARGS=-k 'not test_qml_types.py’ > > > > The correct way is --ignore tests/test_qml_types.py > > Thank you. That works perfectly. > > Do you think it would be helpful to add that to the wiki at: > > https://wiki.debian.org/Python/Pybuild#CUSTOMIZATION
Yes. > Should it replace the information about the -k command or are they > complimentary, with each having advantages in different scenarios? They are complimentary, --ignore skips the file at the test collection step (https://docs.pytest.org/en/stable/example/pythoncollection.html), -k and -m select/deselect specific tests (https://docs.pytest.org/en/stable/example/markers.html). -- WBR, wRAR
signature.asc
Description: PGP signature