summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_calltip.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2020-09-22 05:43:55 (GMT)
committerGitHub <noreply@github.com>2020-09-22 05:43:55 (GMT)
commit40a0625792e795cd41c4ba20475e3b770b53817a (patch)
tree5716b22dd801b0b7e22fb349c45d45cdcf844939 /Lib/idlelib/idle_test/test_calltip.py
parent6c33385e3a1dce31d7b9037eebfc584075795dba (diff)
downloadcpython-40a0625792e795cd41c4ba20475e3b770b53817a.zip
cpython-40a0625792e795cd41c4ba20475e3b770b53817a.tar.gz
cpython-40a0625792e795cd41c4ba20475e3b770b53817a.tar.bz2
bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)
The marker was added to the language in 3.8 and 3.7 only gets security patches.
Diffstat (limited to 'Lib/idlelib/idle_test/test_calltip.py')
-rw-r--r--Lib/idlelib/idle_test/test_calltip.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/idlelib/idle_test/test_calltip.py b/Lib/idlelib/idle_test/test_calltip.py
index d386b5c..4d53df1 100644
--- a/Lib/idlelib/idle_test/test_calltip.py
+++ b/Lib/idlelib/idle_test/test_calltip.py
@@ -61,18 +61,16 @@ class Get_argspecTest(unittest.TestCase):
if List.__doc__ is not None:
tiptest(List,
- f'(iterable=(), /){calltip._argument_positional}'
+ f'(iterable=(), /)'
f'\n{List.__doc__}')
tiptest(list.__new__,
'(*args, **kwargs)\n'
'Create and return a new object. '
'See help(type) for accurate signature.')
tiptest(list.__init__,
- '(self, /, *args, **kwargs)'
- + calltip._argument_positional + '\n' +
+ '(self, /, *args, **kwargs)\n'
'Initialize self. See help(type(self)) for accurate signature.')
- append_doc = (calltip._argument_positional
- + "\nAppend object to the end of the list.")
+ append_doc = "\nAppend object to the end of the list."
tiptest(list.append, '(self, object, /)' + append_doc)
tiptest(List.append, '(self, object, /)' + append_doc)
tiptest([].append, '(object, /)' + append_doc)