From 5740c5f7bf47f2c4134857e61e8dc0d3b02dd69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Tue, 1 Sep 2020 14:27:28 +0200 Subject: [PATCH] Tox can pass positional arguments to test runners --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index e33de28..65773a2 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ passenv = WITH_GCOV # - Enable BytesWarning # - Turn all warnings into exceptions. commands = {envpython} -bb -Werror \ - -m unittest discover -v -s Tests -p 't_*' + -m unittest discover -v -s Tests -p 't_*' {posargs} [testenv:py3-nosasltls] basepython = python3 @@ -52,7 +52,7 @@ passenv = {[testenv]passenv} setenv = CI_DISABLED=INIT_FD commands = - {envpython} -m unittest -v \ + {envpython} -m unittest -v {posargs} \ Tests/t_cidict.py \ Tests/t_ldap_dn.py \ Tests/t_ldap_filter.py \ @@ -66,7 +66,7 @@ commands = [testenv:pypy3] basepython = pypy3 deps = pytest -commands = {envpython} -m pytest +commands = {envpython} -m pytest {posargs} [testenv:doc] basepython = python3