Is there an existing plugin which could be used like:

@nose.plugins.expectedfailure
def not_done_yet():
    a = Thingamajig().fancynewthing()
    assert a == "example"

If the test fails, it would appear like a skipped test:

$ nosetests
...S..

..but if it unexpected passes, it would appear similarly to a failure, maybe like:

=================================
UNEXPECTED PASS: not_done_yet
---------------------------------
-- >> begin captured stdout << --
Things and etc
...

Kind of like SkipTest, but not implemented as an exception which prevents the test from running.

Only thing I can find is this ticket about supporting the unittest2 expectedFailure decorator (although I'd rather not use unittest2, even if nose supported it)

Edit
Report