Skip to content

Commit 9232389

Browse files
committed
Use same python which invoked tox for "doctesting" env
This will work for Travis and AppVeyor because both start tox using Python 3
1 parent b5bd4d9 commit 9232389

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CONTRIBUTING.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ but here is a simple overview:
211211
You need to have Python 2.7 and 3.5 available in your system. Now
212212
running tests is as simple as issuing this command::
213213

214-
$ python runtox.py -e linting,py27,py35
214+
$ python3 runtox.py -e linting,py27,py35
215215

216216
This command will run tests via the "tox" tool against Python 2.7 and 3.5
217217
and also perform "lint" coding-style checks. ``runtox.py`` is
@@ -226,11 +226,11 @@ but here is a simple overview:
226226
To run tests on py27 and pass options to pytest (e.g. enter pdb on failure)
227227
to pytest you can do::
228228

229-
$ python runtox.py -e py27 -- --pdb
229+
$ python3 runtox.py -e py27 -- --pdb
230230

231231
or to only run tests in a particular test module on py35::
232232

233-
$ python runtox.py -e py35 -- testing/test_config.py
233+
$ python3 runtox.py -e py35 -- testing/test_config.py
234234

235235
#. Commit and push once your tests pass and you are happy with your change(s)::
236236

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ commands=
104104
make html
105105

106106
[testenv:doctesting]
107-
basepython = python3
107+
basepython = python
108108
changedir=doc/en
109109
deps=PyYAML
110110
commands= py.test -rfsxX {posargs}

0 commit comments

Comments
 (0)