def run_tests(self): import tox import shlex args = [] if self.tox_args: args = shlex.split(self.tox_args) errno = tox.cmdline(args=args) sys.exit(errno)