summaryrefslogtreecommitdiff
path: root/tests/test_parsing.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-03-13 08:10:51 -0400
committerGitHub <noreply@github.com>2020-03-13 08:10:51 -0400
commit77e2a0fab7620d22e0fde6be7374dbbf26706fd4 (patch)
tree7596897fa233204b7c7b84c94f26c71ccaf5ad5b /tests/test_parsing.py
parent59739aa5b6f253814fb019a9e777056a6efb61ca (diff)
parenta4160cfe9ab39402511c1a445f3b978099743bc9 (diff)
downloadcmd2-git-77e2a0fab7620d22e0fde6be7374dbbf26706fd4.tar.gz
Merge pull request #906 from python-cmd2/parsing_exception
Parsing exception
Diffstat (limited to 'tests/test_parsing.py')
-rwxr-xr-xtests/test_parsing.py4
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():