summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-01-21 08:07:51 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-01-21 08:07:51 (GMT)
commiteed1661b47d5a80803d4760fb4ffc4c0da50dd13 (patch)
tree313e519c96b3d6a524c13b886dbe59d3718f6961
parent681ede8b0a99819def42ad7a315d1879457db49e (diff)
downloadcpython-eed1661b47d5a80803d4760fb4ffc4c0da50dd13.zip
cpython-eed1661b47d5a80803d4760fb4ffc4c0da50dd13.tar.gz
cpython-eed1661b47d5a80803d4760fb4ffc4c0da50dd13.tar.bz2
Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins.
-rw-r--r--Lib/idlelib/idle_test/test_calltips.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_calltips.py b/Lib/idlelib/idle_test/test_calltips.py
index 5254c60..da52e88 100644
--- a/Lib/idlelib/idle_test/test_calltips.py
+++ b/Lib/idlelib/idle_test/test_calltips.py
@@ -33,8 +33,16 @@ tc = TC()
signature = ct.get_argspec # 2.7 and 3.x use different functions
class Get_signatureTest(unittest.TestCase):
+ # The signature function must return a string, even if blank.
+ # Test a variety of objects to be sure that none cause it to raise
+ # (quite aside from getting as correct an answer as possible).
+ # The tests of builtins may break if inspect or the docstrings change,
+ # but a red buildbot is better than a user crash (as has happened).
+ # For a simple mismatch, change the expected output to the actual.
def test_builtins(self):
+ # These test will break if
+
# Python class that inherits builtin methods
class List(list): "List() doc"
# Simulate builtin with no docstring for default argspec test