http://codereview.appspot.com/2448/diff/13/30 File Lib/test/test_traceback.py (right): http://codereview.appspot.com/2448/diff/13/30#newcode118 Line 118: class BaseExceptionReportingTests: On 2008/07/13 21:15:39, Benjamin wrote: > ...
16 years, 6 months ago
(2008-07-13 21:32:03 UTC)
#2
http://codereview.appspot.com/2448/diff/13/30 File Lib/test/test_traceback.py (right): http://codereview.appspot.com/2448/diff/13/30#newcode118 Line 118: class BaseExceptionReportingTests: On 2008/07/13 21:32:03, Antoine Pitrou wrote: ...
16 years, 6 months ago
(2008-07-13 21:35:28 UTC)
#3
http://codereview.appspot.com/2448/diff/13/30
File Lib/test/test_traceback.py (right):
http://codereview.appspot.com/2448/diff/13/30#newcode118
Line 118: class BaseExceptionReportingTests:
On 2008/07/13 21:32:03, Antoine Pitrou wrote:
> On 2008/07/13 21:15:39, Benjamin wrote:
> > Can't this just inherit unittest.TestCase?
>
> No, because the test_ methods would be executed while they should only be
called
> in the derived classes (those which currently also inherit unittest.TestCase).
I think it's better to name the tests explicit in the run_unittest call then.
>
>
(sorry, I forgot to publish that comment) http://codereview.appspot.com/2448/diff/13/30 File Lib/test/test_traceback.py (right): http://codereview.appspot.com/2448/diff/13/30#newcode118 Line 118: class ...
16 years, 6 months ago
(2008-07-14 21:17:01 UTC)
#5
(sorry, I forgot to publish that comment)
http://codereview.appspot.com/2448/diff/13/30
File Lib/test/test_traceback.py (right):
http://codereview.appspot.com/2448/diff/13/30#newcode118
Line 118: class BaseExceptionReportingTests:
On 2008/07/13 21:35:28, Benjamin wrote:
>
> I think it's better to name the tests explicit in the run_unittest call then.
I'm not sure I agree with that. It's too easy to forget adding tests to the
run_unittest call, that's why I find the run_unittest(__name__) syntax much more
pleasant.
This idiom is already used elsewhere, see e.g. test_memoryio.py (the base class
is called Mixin there).
(but perhaps we should discuss that controversy in the unittest thread on
python-dev ;-P)
On 2008/07/14 21:17:01, Antoine Pitrou wrote: > > I'm not sure I agree with that. ...
16 years, 6 months ago
(2008-07-14 21:19:40 UTC)
#6
On 2008/07/14 21:17:01, Antoine Pitrou wrote:
>
> I'm not sure I agree with that. It's too easy to forget adding tests to the
> run_unittest call, that's why I find the run_unittest(__name__) syntax much
more
> pleasant.
>
> This idiom is already used elsewhere, see e.g. test_memoryio.py (the base
class
> is called Mixin there).
>
> (but perhaps we should discuss that controversy in the unittest thread on
> python-dev ;-P)
Fine, you win. :)
Issue 2448: PEP 3134 exception reporting
(Closed)
Created 16 years, 6 months ago by Antoine Pitrou
Modified 15 years, 5 months ago
Reviewers: Benjamin, GvR
Base URL: http://svn.python.org/view/*checkout*/python/branches/py3k/
Comments: 10