diff options
author | terryjreedy <tjreedy@udel.edu> | 2017-06-11 18:29:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-11 18:29:38 (GMT) |
commit | 57d8de80313c536d409d6a104ae577af8ffc57fb (patch) | |
tree | 0742e1fc5ada56cacea592153073fbc081c51aae | |
parent | a895f91a46c65a6076e8c6a28af0df1a07ed60a2 (diff) | |
download | cpython-57d8de80313c536d409d6a104ae577af8ffc57fb.zip cpython-57d8de80313c536d409d6a104ae577af8ffc57fb.tar.gz cpython-57d8de80313c536d409d6a104ae577af8ffc57fb.tar.bz2 |
[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)
-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..97e15fe 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 = "L.append(object) -> None -- append object to end" #see3.7 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), '''\ |