8000 gh-113317: Argument Clinic: move linear_format into libclinic by erlend-aasland · Pull Request #115518 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-113317: Argument Clinic: move linear_format into libclinic #115518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
0