summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Levin <31205609+stanislavlevin@users.noreply.github.com>2018-02-08 09:58:31 +0300
committerBenjamin Peterson <benjamin@python.org>2018-02-07 22:58:31 -0800
commit0d89d58e78dec759eb0f49f1d59e287c1fe61d51 (patch)
treef4a760d9af1aae37151f20b38bb21f5766916798
parentedb7d0051202280d44939fd48863d244fe7b2c2b (diff)
downloadsix-git-0d89d58e78dec759eb0f49f1d59e287c1fe61d51.tar.gz
use -m for invoking py.test (#226)
Linux distributions provides py.test script on their own way for support python2 and python3 both together. For example py.test with python2 shebang or py.test with python3 one. Or scripts with another names, e.g. py.test - python2 shebang, py.test3 - python3 shebang. Therefore it is better to import module instead.
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index d581326..0ba5a6c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,7 +6,7 @@ indexserver=
[testenv]
deps= pytest
-commands= py.test -rfsxX {posargs}
+commands= python -m pytest -rfsxX {posargs}
[testenv:flake8]
basepython=python