[Pytest-commit] Issue #111: tox cannot be started on itself with twice the same environment ( tox -e py27, py27) (hpk42/tox)

Anthon van der Neut issues-reply at bitbucket.org
Thu Aug 8 08:10:07 CEST 2013


New issue 111: tox cannot be started on itself with twice the same environment ( tox -e py27,py27)
https://bitbucket.org/hpk42/tox/issue/111/tox-cannot-be-started-on-itself-with-twice

Anthon van der Neut:

I am not sure it should run the same environment twice, but it should not throw an error:

```
$ tox -e py27,py27
GLOB sdist-make: /data1/src/tox.test/setup.py
py27 recreate: /data1/src/tox.test/.tox/py27
py27 installdeps: pytest>=2.3.5
py27 inst: /data1/src/tox.test/.tox/dist/tox-1.6.0.dev2.zip
py27 runtests: commands[0] | py.test --junitxml=/data1/src/tox.test/.tox/py27/log/junit-py27.xml
============================= test session starts =============================
platform linux2 -- Python 2.7.3 -- pytest-2.3.5
tox comes from: '/data1/src/tox.test/.tox/py27/local/lib/python2.7/site-packages/tox/__init__.pyc'
collected 159 items 

<snip>
tests/test_z_cmdline.py .................................

---- generated xml file: /data1/src/tox.test/.tox/py27/log/junit-py27.xml -----
=================== 157 passed, 2 skipped in 79.87 seconds ====================
py27 inst: /data1/src/tox.test/.tox/dist/tox-1.6.0.dev2.zip
Traceback (most recent call last):
  File "/usr/local/bin/tox", line 9, in <module>
    load_entry_point('tox==1.6.0.dev2', 'console_scripts', 'tox')()
  File "/data1/src/tox.test/tox/_cmdline.py", line 26, in main
    retcode = Session(config).runcommand()
  File "/data1/src/tox.test/tox/_cmdline.py", line 301, in runcommand
    return self.subcommand_test()
  File "/data1/src/tox.test/tox/_cmdline.py", line 420, in subcommand_test
    self.runtestenv(venv)
  File "/data1/src/tox.test/tox/_cmdline.py", line 428, in runtestenv
    venv.test(redirect=redirect)
  File "/data1/src/tox.test/tox/_venv.py", line 328, in test
    message = "commands[%s] | %s" % (i, ' '.join(argv))
TypeError: sequence item 0: expected string, LocalPath found
```



This was tested on a fresh clone of tox:
```
changeset:   484:d31aad39e16f
tag:         tip
user:        Matt Good <matt at matt-good.net>
date:        Wed Aug 07 09:13:48 2013 -0700
summary:     Compute skipsdist default at config parse time
```

Responsible: anthon_van_der_neut


More information about the pytest-commit mailing list