Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address review
  • Loading branch information
erlend-aasland committed Feb 15, 2024
commit 5ea7b8131c11eff65f929e5aafa8f069b9b88c83
4 changes: 2 additions & 2 deletions Lib/test/test_clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,13 +762,13 @@ def test_multiline_substitution(self):
""", name='bingle\nbungle\n')

def test_text_before_block_marker(self):
regex = "found before '{marker}'"
regex = re.escape("found before '{marker}'")
with self.assertRaisesRegex(clinic.ClinicError, regex):
libclinic.linear_format("no text before marker for you! {marker}",
marker="not allowed!")

def test_text_after_block_marker(self):
regex = "found after '{marker}'"
regex = re.escape("found after '{marker}'")
with self.assertRaisesRegex(clinic.ClinicError, regex):
libclinic.linear_format("{marker} no text after marker for you!",
marker="not allowed!")
Expand Down