Skip to content

Commit fb9fe36

Browse files
committed
Simplified a unit test
1 parent d1fb8f7 commit fb9fe36

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_history.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,8 @@ def test_history_with_span_index_error(base_app):
237237
run_cmd(base_app, 'help')
238238
run_cmd(base_app, 'help history')
239239
run_cmd(base_app, '!ls -hal :')
240-
241-
out, err = run_cmd(base_app, 'history "hal :"')
242-
assert "ValueError" in err[0]
240+
with pytest.raises(ValueError):
241+
base_app.onecmd('history "hal :"')
243242

244243
def test_history_output_file(base_app):
245244
run_cmd(base_app, 'help')

0 commit comments

Comments
 (0)