[pytest-dev] Setting up tox

holger krekel holger at merlinux.eu
Wed Apr 16 23:43:36 CEST 2014


On Wed, Apr 16, 2014 at 17:39 -0400, Brianna Laugher wrote:
> On 16 April 2014 16:44, holger krekel <holger at merlinux.eu> wrote:
> 
> >
> > > I can manually pip install nose, mock and pytest-flakes, but I don't know
> > > how to make python3.3 (which I have installed from my OS repo) "visible"
> > or
> > > available to this virtualenv. Any ideas?
> >
> > It should be on the PATH, so invoking "python3.3" should basically work.
> >
> 
> Do you mean calling runtox.py with the right python version? No luck there
> either:
> 
> (pytest)brianna at montreal:~/workspace/pytest$ which python3.4
> /usr/bin/python3.4
> (pytest)brianna at montreal:~/workspace/pytest$ python3.4 runtox.py -v -e
> py27,py34,flakes
> /usr/bin/python3.4: No module named tox
> (pytest)brianna at montreal:~/workspace/pytest$ which python3
> /usr/bin/python3
> (pytest)brianna at montreal:~/workspace/pytest$ python3 runtox.py -v -e
> py27,py34,flakes
> /usr/bin/python3: No module named tox

No, i mean that "python3.3" should be on the path because tox.ini
defines that tests should work against the "py33" environment which
implies a working "python3.3" interpreter.  How you invoke "runtox.py"
is a different thing and it does need tox installed in the interpreter
you are invoking the script with.

holger
>  Brianna
> 
> -- 
> They've just been waiting in a mountain for the right moment:
> http://modernthings.org/


More information about the Pytest-dev mailing list