diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-03-12 15:53:40 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-03-12 15:53:40 -0400 |
commit | b3eafe71b400a7a48bda5a456d53a9433ef838dd (patch) | |
tree | d2b9151f48eaabefa3eb48772aa370da7f5f8a5c /tests/test_parsing.py | |
parent | d17f79428a41a5239c4fdbdf9745c294649f49e8 (diff) | |
download | cmd2-git-b3eafe71b400a7a48bda5a456d53a9433ef838dd.tar.gz |
Added Cmd2ShlexError
Diffstat (limited to 'tests/test_parsing.py')
-rwxr-xr-x | tests/test_parsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_parsing.py b/tests/test_parsing.py index 435f22eb..5f363320 100755 --- a/tests/test_parsing.py +++ b/tests/test_parsing.py @@ -96,7 +96,7 @@ def test_tokenize(parser, line, tokens): assert tokens_to_test == tokens def test_tokenize_unclosed_quotes(parser): - with pytest.raises(ValueError): + with pytest.raises(exceptions.Cmd2ShlexError): _ = parser.tokenize('command with "unclosed quotes') @pytest.mark.parametrize('tokens,command,args', [ @@ -583,7 +583,7 @@ def test_parse_redirect_to_unicode_filename(parser): assert statement.output_to == 'café' def test_parse_unclosed_quotes(parser): - with pytest.raises(ValueError): + with pytest.raises(exceptions.Cmd2ShlexError): _ = parser.tokenize("command with 'unclosed quotes") def test_empty_statement_raises_exception(): |