[Julian Gilbey, 2021-02-08] > I: pybuild base:232: python3.9 setup.py test > running test > WARNING: Testing via this command is deprecated and will be removed in a > future version. Users looking for a generic test entry point independent of > test runner are encouraged to use tox. > > Since it is dh-python that runs this command, presumably it is > dh-python that should change it, or maybe I'm wrong?
if your package uses pytest or nose{,2} then just add appropriate build dependency (like: python3-pytest) and above command will not be used. See pybuild's manual for more details