[issue22153] There is no standard TestCase.runTest implementation

2014-10-29 Thread Robert Collins
Robert Collins added the comment: Oh, one thought - in testtools we split out 'docs for test writers' and 'docs for framework folk'. That would facilitate getting runTest out of test writers face while still documenting it appropriately. Related to that is my ongoing push to split the protocol

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Robert Collins
Robert Collins added the comment: Constructing test case objects directly is part of the protocol, and its needed for framework and extension authors. I've seen folk use runTest, but rarely enough that I think we could deprecate it. My argument is that while its supported we should be clear ab

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 29/10/2014 00:22, Martin Panter a écrit : > > Martin Panter added the comment: > > Removing stuff from the documentation would make it hard to > understand what existing code means that uses runTest(). Isn’t this a case where you would add a big red “Depreca

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Martin Panter
Martin Panter added the comment: Removing stuff from the documentation would make it hard to understand what existing code means that uses runTest(). Isn’t this a case where you would add a big red “Deprecated since version . . .” warning instead? Maybe a comprimise would be to “hide” its docu

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 28/10/2014 23:01, Robert Collins a écrit : > > runTest is part of the current API. I think if we're going to hide > it we should do so as part of a deprecation path. (I'm +1 on hiding it). We don't need a deprecation path to remove something from the documen

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Robert Collins
Robert Collins added the comment: runTest is part of the current API. I think if we're going to hide it we should do so as part of a deprecation path. (I'm +1 on hiding it). -- ___ Python tracker _

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Martin Panter
Martin Panter added the comment: Do you mean pretending there is no default “methodName” value, or pretending that the runTest() method is not invoked by discovery? I would have to check, but I think I have relied on the runTest() method being discovered in the past, when I did not think a mor

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: IMO hiding the existence of `runTest` would be best. It doesn't seem to make anything more flexible, and it complicates the documentation. -- nosy: +pitrou ___ Python tracker

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Martin Panter
Martin Panter added the comment: The patch seems reasonable to me -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +rbcollins stage: -> patch review versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-lis

[issue22153] There is no standard TestCase.runTest implementation

2014-08-17 Thread evilzero
Changes by evilzero : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22153] There is no standard TestCase.runTest implementation

2014-08-17 Thread evilzero
evilzero added the comment: Updated documentation following suggestion. -- keywords: +patch nosy: +evilzero Added file: http://bugs.python.org/file36401/myworkdoc.patch ___ Python tracker __

[issue22153] There is no standard TestCase.runTest implementation

2014-08-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22153] There is no standard TestCase.runTest implementation

2014-08-05 Thread Martin Panter
New submission from Martin Panter: The documentation for "unittest.TestCase" says "the standard implementation of the default 'methodName', runTest(), will run every method starting with 'test' as an individual test". However: >>> from unittest import * >>> class Test(TestCase): ... def te