8000 Also revert tests · python/cpython@2685d74 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2685d74

Browse files
Also revert tests
1 parent 6f5936a commit 2685d74

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/test/test_clinic.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ def test_eol(self):
100100
# the last line of the block got corrupted.
101101
c = clinic.Clinic(clinic.CLanguage(None), filename="file")
102102
raw = "/*[clinic]\nfoo\n[clinic]*/"
103-
cooked, _ = c.parse(raw)
104-
lines = cooked.splitlines()
105-
end_line = lines[2].rstrip()
103+
cooked = c.parse(raw).splitlines()
104+
end_line = cooked[2].rstrip()
106105
# this test is redundant, it's just here explicitly to catch
107106
# the regression test so we don't forget what it looked like
108107
self.assertNotEqual(end_line, "[clinic]*/[clinic]*/")
@@ -261,7 +260,7 @@ def _test_clinic(self, input, output):
261260
c = clinic.Clinic(language, filename="file")
262261
c.parsers['inert'] = InertParser(c)
263262
c.parsers['copy'] = CopyParser(c)
264-
computed, _ = c.parse(input)
263+
computed = c.parse(input)
265264
self.assertEqual(output, computed)
266265

267266
def test_clinic_1(self):

0 commit comments

Comments
 (0)
0