PY-29243: Remove first item from sys.argv for tox

first item is _jb_runner name which is not how tox does.
It breaks {posargs}
This commit is contained in:
Ilya.Kazakevich
2018-03-30 00:41:18 +03:00
parent 6c072501b9
commit ca744da635
4 changed files with 48 additions and 2 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ class _Nose(object):
_RUNNERS = [_Unit2(), _PyTest(), _Nose()]
import sys
config = tox_config.parseconfig(args=sys.argv)
config = tox_config.parseconfig(args=sys.argv[1:])
for env, tmp_config in config.envconfigs.items():
if not tmp_config.setenv:
tmp_config.setenv = dict()