Author jmp
Recipients jmp
Date 2008-06-25.19:53:26
SpamBayes Score 0.0166631
Marked as misclassified No
Message-id <1214423608.55.0.624662877506.issue3202@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch (unittest-disable.patch) allows methods in
unittest.TestCases to be "disabled".  The patch is against
Python2.5 from Debian:

%python2.5
Python 2.5.2 (r252:60911, Apr 17 2008, 13:15:05) 
[GCC 4.2.3 (Debian 4.2.3-3)] on linux2

Disabled tests are not run, but are "remembered" in the output of the
test program.  For example, the attached sample_tests.py has two
tests, one of which has been disabled.  The output is:

%python sample_tests.py 
.D
----------------------------------------------------------------------
Ran 2 tests in 0.000s

OK

where the D indicates that a test has been disabled.

Disabling tests is useful if you're using a "test first" coding
workflow, as some tests may test functionality that hasn't been
implemented yet.  The failures of these tests (with their noisy
tracebacks) makes it harder to concentrate on other, real failures
that may be occurring in your tests.
History
Date User Action Args
2008-06-25 19:53:28jmpsetspambayes_score: 0.0166631 -> 0.0166631
recipients: + jmp
2008-06-25 19:53:28jmpsetspambayes_score: 0.0166631 -> 0.0166631
messageid: <1214423608.55.0.624662877506.issue3202@psf.upfronthosting.co.za>
2008-06-25 19:53:27jmplinkissue3202 messages
2008-06-25 19:53:27jmpcreate