New issue 279: commands substitution does not work if commands uses '{posargs}'
https://bitbucket.org/hpk42/tox/issues/279/commands-substitution-does-not-work-if
Sachi King:
```
[testenv:sect1]
commands = something {posargs}
[testenv:sect2]
commands = {[testenv:sect1]commands}
```
$ tox -e sect2
```
File "/usr/bin/tox", line 9, in <module>
load_entry_point('tox==2.1.1', 'console_scripts', 'tox')()
File "/usr/lib/python3.5/site-packages/tox/session.py", line 38, in main
config = prepare(args)
File "/usr/lib/python3.5/site-packages/tox/session.py", line 26, in prepare
config = parseconfig(args)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 219, in
parseconfig
parseini(config, inipath)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 669, in __init__
self.make_envconfig(name, section, reader._subs, config)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 697, in
make_envconfig
res = meth(env_attr.name, env_attr.default)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 864, in
getargvlist
return _ArgvlistReader.getargvlist(self, s)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 1013, in
getargvlist
replaced = reader._replace(current_command)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 982, in _replace
return RE_ITEM_REF.sub(self._replace_match, x)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 978, in
_replace_match
return handler(match)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 948, in
_replace_substitution
val = self._substitute_from_other_section(sub_key)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 937, in
_substitute_from_other_section
return self._replace(x)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 982, in _replace
return RE_ITEM_REF.sub(self._replace_match, x)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 978, in
_replace_match
return handler(match)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 948, in
_replace_substitution
val = self._substitute_from_other_section(sub_key)
File "/usr/lib/python3.5/site-packages/tox/config.py", line 942, in
_substitute_from_other_section
"substitution key %r not found" % key)
tox.ConfigError: ConfigError: substitution key 'posargs' not found
```
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit