Skip to content

Commit 0d89d58

Browse files
stanislavlevinbenjaminp
authored andcommitted
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.
1 parent edb7d00 commit 0d89d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ indexserver=
66

77
[testenv]
88
deps= pytest
9-
commands= py.test -rfsxX {posargs}
9+
commands= python -m pytest -rfsxX {posargs}
1010

1111
[testenv:flake8]
1212
basepython=python

0 commit comments

Comments
 (0)