Skip to content

Commit a6bc481

Browse files
author
Erlend E. Aasland
committed
Adjust idlelib tiptest
from Lib/idlelib/idle_test/test_calltip.py: 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.
1 parent bdd1338 commit a6bc481

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/idlelib/idle_test/test_calltip.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ class SB: __call__ = None
8888
replacement repl. repl can be either a string or a callable;
8989
if a string, backslash escapes in it are processed. If it is
9090
a callable, it's passed the Match object and must return''')
91-
tiptest(p.sub, '''\
92-
(repl, string, count=0)
93-
Return the string obtained by replacing the leftmost \
94-
non-overlapping occurrences o...''')
91+
tiptest(p.sub, '(repl, string, count=0)')
9592

9693
def test_signature_wrap(self):
9794
if textwrap.TextWrapper.__doc__ is not None:

0 commit comments

Comments
 (0)