[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [IMP-dev] [IMP-build] Build system failure, 08/15/2012

Le 15/08/12 21:33, Ben Webb a écrit :
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)

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:

def my_test(self):