Use same python which invoked tox for "doctesting" env

This will work for Travis and AppVeyor because both start tox using Python 3
This commit is contained in:
Bruno Oliveira 2016-06-01 20:29:55 -03:00
parent b5bd4d959d
commit 92323895c9
2 changed files with 4 additions and 4 deletions

View File

@ -211,7 +211,7 @@ but here is a simple overview:
You need to have Python 2.7 and 3.5 available in your system. Now You need to have Python 2.7 and 3.5 available in your system. Now
running tests is as simple as issuing this command:: running tests is as simple as issuing this command::
$ python runtox.py -e linting,py27,py35 $ python3 runtox.py -e linting,py27,py35
This command will run tests via the "tox" tool against Python 2.7 and 3.5 This command will run tests via the "tox" tool against Python 2.7 and 3.5
and also perform "lint" coding-style checks. ``runtox.py`` is and also perform "lint" coding-style checks. ``runtox.py`` is
@ -226,11 +226,11 @@ but here is a simple overview:
To run tests on py27 and pass options to pytest (e.g. enter pdb on failure) To run tests on py27 and pass options to pytest (e.g. enter pdb on failure)
to pytest you can do:: to pytest you can do::
$ python runtox.py -e py27 -- --pdb $ python3 runtox.py -e py27 -- --pdb
or to only run tests in a particular test module on py35:: or to only run tests in a particular test module on py35::
$ python runtox.py -e py35 -- testing/test_config.py $ python3 runtox.py -e py35 -- testing/test_config.py
#. Commit and push once your tests pass and you are happy with your change(s):: #. Commit and push once your tests pass and you are happy with your change(s)::

View File

@ -104,7 +104,7 @@ commands=
make html make html
[testenv:doctesting] [testenv:doctesting]
basepython = python3 basepython = python
changedir=doc/en changedir=doc/en
deps=PyYAML deps=PyYAML
commands= py.test -rfsxX {posargs} commands= py.test -rfsxX {posargs}