summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Bompard2016-04-26 11:00:41 +0200
committerAurélien Bompard2016-04-30 19:00:22 +0200
commit854610463617718210902ed0a5117382f427b16e (patch)
tree0dea23927d0ff2e8084425af76613bf8ac7ddbfd
parent1b46e6b6262109d4befbb5a1c534ffde25d702fb (diff)
downloadmailman-854610463617718210902ed0a5117382f427b16e.tar.gz
mailman-854610463617718210902ed0a5117382f427b16e.tar.zst
mailman-854610463617718210902ed0a5117382f427b16e.zip
Make the tox.ini file more flexible
This commit improves two aspects of the tox.ini file: * Take arguments into account to only run a subset of the tests, eg: `tox -e py34 mailman.model.tests.test_subscriptions` * Make it possible to run pyflakes with the local Python 3 interpreter, whichever its version.
-rw-r--r--tox.ini6
1 files changed, 3 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 9c10f9945..9dcec1f25 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,8 +5,8 @@ skip_missing_interpreters = True
[testenv]
commands =
- python -m nose2 -v
- {coverage,diffcov}: python -m coverage run {[coverage]rc} -m nose2 -v
+ python -m nose2 -v {posargs}
+ {coverage,diffcov}: python -m coverage run {[coverage]rc} -m nose2 -v {posargs}
{coverage,diffcov}: python -m coverage combine {[coverage]rc}
coverage: python -m coverage html {[coverage]rc}
coverage: python -m coverage report -m {[coverage]rc}
@@ -27,7 +27,7 @@ setenv =
coverage: COVERAGE_FILE={toxinidir}/.coverage
[testenv:qa]
-basepython = python3.5
+basepython = python3
commands =
python -m flake8 src
deps =