"setup.py test" is deprecated
Running tests via "setup.py test" is deprecated and will be removed in a future version of setuptools.
Reproduce
checkout any current Trytond module and run the tst-suite:
$ tox -e py38-sqlite
py38-sqlite run-test: commands[0] | …/.tox/…/bin/python 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.
Solution suggestion
Since pytest is the leading testing framework, using this might be an option.