Skip to content
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

gh-113317: Move more formatting helpers into libclinic #113438

Merged
merged 3 commits into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions Lib/test/test_clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3730,7 +3730,7 @@ def test_strip_leading_and_trailing_blank_lines(self):
)
for lines, expected in dataset:
with self.subTest(lines=lines, expected=expected):
out = clinic.strip_leading_and_trailing_blank_lines(lines)
out = libclinic.normalize_snippet(lines)
self.assertEqual(out, expected)

def test_normalize_snippet(self):
Expand Down Expand Up @@ -3759,7 +3759,7 @@ def test_normalize_snippet(self):
expected_outputs = {0: zero_indent, 4: four_indent, 8: eight_indent}
for indent, expected in expected_outputs.items():
with self.subTest(indent=indent):
actual = clinic.normalize_snippet(snippet, indent=indent)
actual = libclinic.normalize_snippet(snippet, indent=indent)
self.assertEqual(actual, expected)

def test_escaped_docstring(self):
Expand All @@ -3780,7 +3780,7 @@ def test_escaped_docstring(self):
def test_format_escape(self):
line = "{}, {a}"
expected = "{{}}, {{a}}"
out = clinic.format_escape(line)
out = libclinic.format_escape(line)
self.assertEqual(out, expected)

def test_indent_all_lines(self):
Expand Down
Loading
Loading