summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index c095bbba..156b9a73 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -54,10 +54,9 @@ def test_base_invalid_option(base_app, capsys):
run_cmd(base_app, 'show -z')
out, err = capsys.readouterr()
show_help = run_cmd(base_app, 'help show')
- expected = ['no such option: -z']
- expected.extend(show_help)
+ expected = ['usage: show [-h] [-l] [param]', 'show: error: unrecognized arguments: -z']
# 'show -h' is the same as 'help show', other than whitespace differences of an extra newline present in 'help show'
- assert normalize(str(out)) == expected
+ assert normalize(str(err)) == expected
def test_base_shortcuts(base_app):
out = run_cmd(base_app, 'shortcuts')