This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients serhiy.storchaka, terry.reedy
Date 2014-01-24.07:09:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390547347.91.0.357419293453.issue20338@psf.upfronthosting.co.za>
In-reply-to
Content
I changed 5 to _MAX_LINES.

Other than trivial duplication, I think each test example should be added for a reason, because there is something different about it that might conceivably cause a failure. For example, there should be a case with more than _MAX_LINES in the docstring. But I think one is enough to make sure we split with maxsplit. And I think one text wrap is enough.

The many 't#' test functions were needed for 2.x because it has 12 lines of complicated code that were replaced here by 1.
   argspec = inspect.formatargspec(*inspect.getfullargspec(fob))
For 3.x, we would not need as many tests if the inspect methods were adequately tested and debugged. However, they were not fixed to handle keyword only args until 3.4 and they are still in flux.

The attached patch will need adjustment for 2.7 (I believe) and 3.4 (because *,... is handled better). I plan to do so when fresher.
History
Date User Action Args
2014-01-24 07:09:07terry.reedysetrecipients: + terry.reedy, serhiy.storchaka
2014-01-24 07:09:07terry.reedysetmessageid: <1390547347.91.0.357419293453.issue20338@psf.upfronthosting.co.za>
2014-01-24 07:09:07terry.reedylinkissue20338 messages
2014-01-24 07:09:07terry.reedycreate