Le 15/08/12 21:33, Ben Webb a écrit :
A more elegant solution is to use decorators (http://effbot.org/pyref/def.htm). Just add @expectedFailure to the line before the test you want to skip:On 08/15/2012 11:26 AM, Barak Raveh wrote:Ben, we need this decorator also for atom (it is something with BD which is probably nothing) - can you explain how to use it (or just send me to an example code)Check out the unittest docs at python.org. IIRC, it looks something like def my_test(self): ... my_test = expectedFailure(my_test) Ben
@expectedFailure def my_test(self): ... Y