Skip to content

Commit

Permalink
Merge branch 'release/2.0.x' into pyproject-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Nov 9, 2023
2 parents a38010f + 5464395 commit 8a12c6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arpeggio/tests/test_error_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def grammar():
)

parser.parse(' four ident')
assert "Expected 'one' or 'two' at" in str(e.value)


def test_not_succeed_in_ordered_choice():
Expand Down Expand Up @@ -219,9 +220,7 @@ def grammar():
with pytest.raises(NoMatch) as e:
_ = parser.parse('first')

assert str(e.value) == (
"Expected '\\n' at position (1, 6) => 'first*'."
)
assert "Expected '\\n' at position (1, 6)" in str(e.value)

# A case when regex match has newline
from arpeggio import RegExMatch
Expand Down

0 comments on commit 8a12c6e

Please sign in to comment.