ignored test cases in unittest

David House dmhouse at gmail.com
Mon Aug 17 14:23:47 CEST 2009


2009/8/16 Terry <terry.yinzhe at gmail.com>:
> Thanks for the solutions. I think the decorator idea is what I'm look
> for:-)

Note that the unittest module now supports the `skip' and
`expectedFailure' decorators, which seem to describe some of the
solutions here.

See http://docs.python.org/3.1/library/unittest.html#skipping-tests-and-expected-failures

-- 
-David



More information about the Python-list mailing list