Skip to content

Commit

Permalink
Update deprecated assertRegexpMatches to its new name.
Browse files Browse the repository at this point in the history
  • Loading branch information
reventlov committed Jan 15, 2025
1 parent 1827594 commit 366611f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/front_end/lr1_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def test_mark_error(self):
parser.mark_error([lr1.ANY_TOKEN], lr1.ANY_TOKEN, "default error")
)
# Marking an already-marked error with a different error code should fail.
self.assertRegexpMatches(
self.assertRegex(
parser.mark_error([lr1.ANY_TOKEN], lr1.ANY_TOKEN, "default error 2"),
r"^Attempted to overwrite existing default error code 'default error' "
r"with new error code 'default error 2' for state \d+$",
Expand Down

0 comments on commit 366611f

Please sign in to comment.