summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2024-01-18 04:39:12 (GMT)
committerGitHub <noreply@github.com>2024-01-18 04:39:12 (GMT)
commit6f4b242a03e521a55f0b9e440703b424ed18ce2f (patch)
tree8304999801f3e5d3dd51085c0c1771fd3c24c3ae /Lib/idlelib/idle_test
parent8cda72037b262772399b2b7fc36dee9340d74fd6 (diff)
downloadcpython-6f4b242a03e521a55f0b9e440703b424ed18ce2f.zip
cpython-6f4b242a03e521a55f0b9e440703b424ed18ce2f.tar.gz
cpython-6f4b242a03e521a55f0b9e440703b424ed18ce2f.tar.bz2
gh-96905: In IDLE code, stop redefining built-ins 'dict' and 'object' (#114227)
Prefix 'dict' with 'o', 'g', or 'l' for 'object', 'global', or 'local'. Suffix 'object' with '_'.
Diffstat (limited to 'Lib/idlelib/idle_test')
-rw-r--r--Lib/idlelib/idle_test/test_calltip.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_calltip.py b/Lib/idlelib/idle_test/test_calltip.py
index 15e1ff3..28c196a 100644
--- a/Lib/idlelib/idle_test/test_calltip.py
+++ b/Lib/idlelib/idle_test/test_calltip.py
@@ -79,6 +79,7 @@ class Get_argspecTest(unittest.TestCase):
tiptest(list.append, '(self, object, /)' + append_doc)
tiptest(List.append, '(self, object, /)' + append_doc)
tiptest([].append, '(object, /)' + append_doc)
+ # The use of 'object' above matches the signature text.
tiptest(types.MethodType,
'(function, instance, /)\n'