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 Nikita's review:
Assert stuff in test_parse_with_body_prefix()
  • Loading branch information
erlend-aasland committed Jul 15, 2023
commit 8173cd1a5774d8da4fdb84d13f1595898e492ccc
12 changes: 10 additions & 2 deletions Lib/test/test_clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,16 @@ def test_parse_with_body_prefix(self):
//[clinic start]
//module test
//[clinic stop]
""")
cl.parse(raw)
""").strip()
out = cl.parse(raw)
expected = dedent("""
//[clinic start]
//module test
//
//[clinic stop]
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=65fab8adff58cf08]*/
""").lstrip() # Note, lstrip() because of the newline
self.assertEqual(out, expected)


class ClinicGroupPermuterTest(TestCase):
Expand Down