Skip to content

Commit

Permalink
Adjust idlelib tiptest
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Erlend E. Aasland committed Nov 19, 2020
1 parent bdd1338 commit a6bc481
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Lib/idlelib/idle_test/test_calltip.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ class SB: __call__ = None
replacement repl. repl can be either a string or a callable;
if a string, backslash escapes in it are processed. If it is
a callable, it's passed the Match object and must return''')
tiptest(p.sub, '''\
(repl, string, count=0)
Return the string obtained by replacing the leftmost \
non-overlapping occurrences o...''')
tiptest(p.sub, '(repl, string, count=0)')

def test_signature_wrap(self):
if textwrap.TextWrapper.__doc__ is not None:
Expand Down

0 comments on commit a6bc481

Please sign in to comment.