diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-11 07:19:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-11 07:19:20 (GMT) |
commit | fdd42c481edba4261f861fc1dfe24bbd79b5a17a (patch) | |
tree | c0e5ce32b183920100090cd8b3878196d976fe29 /Lib | |
parent | 0710d754255e731e6fcc3f206b51db6156da17c8 (diff) | |
download | cpython-fdd42c481edba4261f861fc1dfe24bbd79b5a17a.zip cpython-fdd42c481edba4261f861fc1dfe24bbd79b5a17a.tar.gz cpython-fdd42c481edba4261f861fc1dfe24bbd79b5a17a.tar.bz2 |
bpo-20185: Convert list object implementation to Argument Clinic. (#542)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/idle_test/test_calltips.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/idle_test/test_calltips.py b/Lib/idlelib/idle_test/test_calltips.py index 0b11602..29b9f06 100644 --- a/Lib/idlelib/idle_test/test_calltips.py +++ b/Lib/idlelib/idle_test/test_calltips.py @@ -58,7 +58,7 @@ class Get_signatureTest(unittest.TestCase): 'Create and return a new object. See help(type) for accurate signature.') gtest(list.__init__, 'Initialize self. See help(type(self)) for accurate signature.') - append_doc = "L.append(object) -> None -- append object to end" + append_doc = "Append object to the end of the list." gtest(list.append, append_doc) gtest([].append, append_doc) gtest(List.append, append_doc) @@ -81,9 +81,9 @@ class Get_signatureTest(unittest.TestCase): def test_multiline_docstring(self): # Test fewer lines than max. - self.assertEqual(signature(list), - "list() -> new empty list\n" - "list(iterable) -> new list initialized from iterable's items") + self.assertEqual(signature(range), + "range(stop) -> range object\n" + "range(start, stop[, step]) -> range object") # Test max lines self.assertEqual(signature(bytes), '''\ |