import sys from setuptools.command.test import test as test_command [docs]class Tox(test_command): [docs] def finalize_options(self): test_command.finalize_options(self) self.test_args = [] self.test_suite = True [docs] def run_tests(self): import tox errcode = tox.cmdline(self.test_args) sys.exit(errcode)