Useful or not, from you.
rpmlint Warn against python setup.py test construct

https://github.com/pypa/setuptools/issues/1684

python setup.py test subcommand has been deprecated, users should be warned against using it.

That's a useful answer
Without any help

I see. So should we warn about any %python_exec setup.py test call in a spec file? Are you willing to create a pull request for it? Looking at openSUSE:Factory package, there are quite some:

grep 'setup.py test' *.spec | wc -l
162