bug 1406388, fixup flake8 environment to force python2.7, r?stas draft
authorAxel Hecht <axel@pike.org>
Mon, 09 Oct 2017 12:52:07 +0200
changeset 359 e4b790a6c7cd3b3047baddccf4c16541d98c3954
parent 356 731a1b6272f353eb6b6eb43689600e6df7a45471
push id122
push useraxel@mozilla.com
push dateMon, 09 Oct 2017 10:52:23 +0000
reviewersstas
bugs1406388
bug 1406388, fixup flake8 environment to force python2.7, r?stas Tox uses the python interpreter it was built with as default python, which can be py3 for some folks. Make it explicit that we're testing against 2.7. Once we support python3, we should probably flake on both 2.7 and 3. MozReview-Commit-ID: 5cBBT36Pvy2
tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -4,9 +4,10 @@ envlist = py27, flake8
 [travis]
 python =
   2.7: py27, flake8
 
 [testenv]
 commands=python setup.py test
 [testenv:flake8]
 deps=flake8
+basepython=python2.7
 commands=flake8 compare_locales