New issue 233: setup.py example will hang forever
https://bitbucket.org/hpk42/tox/issue/233/setuppy-example-will-hang-forever

simonb:

In the  [setuptools integration 
example](https://testrun.org/tox/latest/example/basic.html#integration-with-setuptools-distribute-test-commands)
 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.

```
#!python

    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)
```



_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to