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

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 has two
tests, one of which has been disabled.  The output is:

Ran 2 tests in 0.000s


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.
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: <>
2008-06-25 19:53:27jmplinkissue3202 messages
2008-06-25 19:53:27jmpcreate