diff options
author | Chris Down <chris@chrisdown.name> | 2022-01-13 07:40:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 07:40:56 +0000 |
commit | 9cc692d85c9ce84344ea7fee4b127755c6099a32 (patch) | |
tree | eb758db9008ecfc5d2e9b487df784efa892fec0a /tests/unit/test_venv.py | |
parent | 86a0383c0617ff1d1ea47a526211bedc415c9d95 (diff) | |
download | tox-git-master.tar.gz |
venv: Do not fail for test commands that don't exist with "-" leader (#2316)master
Diffstat (limited to 'tests/unit/test_venv.py')
-rw-r--r-- | tests/unit/test_venv.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/unit/test_venv.py b/tests/unit/test_venv.py index 2d019034..aa78a48b 100644 --- a/tests/unit/test_venv.py +++ b/tests/unit/test_venv.py @@ -980,6 +980,21 @@ def test_ignore_outcome_failing_cmd(newmocksession): mocksession.report.expect("warning", "*command failed but result from testenv is ignored*") +def test_ignore_outcome_missing_cmd(newmocksession): + mocksession = newmocksession( + [], + """\ + [testenv] + commands=-thiscommanddoesntexist + """, + ) + + venv = mocksession.getvenv("python") + venv.test() + assert venv.status == 0 + mocksession.report.expect("warning", "*command not found but explicitly ignored*") + + def test_tox_testenv_create(newmocksession): log = [] |