diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-03-13 08:10:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 08:10:51 -0400 |
commit | 77e2a0fab7620d22e0fde6be7374dbbf26706fd4 (patch) | |
tree | 7596897fa233204b7c7b84c94f26c71ccaf5ad5b /tests/test_parsing.py | |
parent | 59739aa5b6f253814fb019a9e777056a6efb61ca (diff) | |
parent | a4160cfe9ab39402511c1a445f3b978099743bc9 (diff) | |
download | cmd2-git-77e2a0fab7620d22e0fde6be7374dbbf26706fd4.tar.gz |
Merge pull request #906 from python-cmd2/parsing_exception
Parsing exception
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(): |