Skip to content

Commit 57d8de8

Browse files
authored
[3.6]bpo-20185: Adjust IDLE test to 3.7 Clinic change [GH-542] (#2116)
Synchronize 3.6/3.7 test_calltips to the extent possible. Part of patch by Serhiy Storchaka. (cherry-pick from fdd42c4)
1 parent a895f91 commit 57d8de8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/idlelib/idle_test/test_calltips.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def gtest(obj, out):
5858
'Create and return a new object. See help(type) for accurate signature.')
5959
gtest(list.__init__,
6060
'Initialize self. See help(type(self)) for accurate signature.')
61-
append_doc = "L.append(object) -> None -- append object to end"
61+
append_doc = "L.append(object) -> None -- append object to end" #see3.7
6262
gtest(list.append, append_doc)
6363
gtest([].append, append_doc)
6464
gtest(List.append, append_doc)
@@ -81,9 +81,9 @@ def f(): pass
8181

8282
def test_multiline_docstring(self):
8383
# Test fewer lines than max.
84-
self.assertEqual(signature(list),
85-
"list() -> new empty list\n"
86-
"list(iterable) -> new list initialized from iterable's items")
84+
self.assertEqual(signature(range),
85+
"range(stop) -> range object\n"
86+
"range(start, stop[, step]) -> range object")
8787

8888
# Test max lines
8989
self.assertEqual(signature(bytes), '''\

0 commit comments

Comments
 (0)