setup.py example will hang forever

Issue #233 on hold
Simon Blanchard created an issue

In the setuptools integration example in the documentation

The script will hang forever if there are no arguments passed to tox.

This is because the argument to shlex.split() is None so it waits to read from stdin.

I suggest to change the example to something like the below.

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

Comments (3)

  1. Log in to comment