Terry J. Reedy added the comment: In 3.2.3 >>> list.append.__doc__ 'L.append(object) -- append object to end'
In 3.3.0 >>> list.append.__doc__ 'L.append(object) -> None -- append object to end' I checked the other 6 pure mutation methods. .sort, .extend, .remove, and the new .clear have the same new addition of ' -> None'. .insert and .reverse do not (but it seems they should). It seems I pushed the June 7 #12510 patch -- msg162510 -- which added the .append tests, without properly testing in 3.2. A fix for 3.2 is easy, but the deeper issue is the fragility of comparing external text to hard-coded expected text. I knew when I wrote the tests that that could and would be a problem in the future, but did not notice that it already was. One solution is not to compare again external strings; but then how do we know that the tooltips work with such? Another is to fetch the external string in the test code, but that amounts to duplicating the code in the tooltip function and testing it against itself; so is it really a test? The third option is to leave the tests vulnerable and patch them in a version specific manner when they break. ---------- nosy: +terry.reedy _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16655> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com