Skip to content

Commit

Permalink
Make tests compatible to pyparsing 2.4.7
Browse files Browse the repository at this point in the history
Ref. #291
  • Loading branch information
treiher committed Aug 19, 2020
1 parent 85a0126 commit 88b4325
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def test_grammar_mathematical_expression(string: str, expected: Expr) -> None:
@pytest.mark.parametrize(
"string,error",
[
("42 > X", 'unexpected expression type "Greater" .*'),
("X and Y", 'unexpected expression type "And" .*'),
("42 > X", 'unexpected expression type "Greater".*'),
("X and Y", 'unexpected expression type "And".*'),
],
)
def test_grammar_mathematical_expression_error(string: str, error: Expr) -> None:
Expand All @@ -285,8 +285,8 @@ def test_grammar_boolean_expression(string: str, expected: Expr) -> None:
@pytest.mark.parametrize(
"string,error",
[
("42", 'unexpected expression type "Number" .*'),
("X", 'unexpected expression type "Variable" .*'),
("42", 'unexpected expression type "Number".*'),
("X", 'unexpected expression type "Variable".*'),
],
)
def test_grammar_boolean_expression_error(string: str, error: Expr) -> None:
Expand Down

0 comments on commit 88b4325

Please sign in to comment.