<s> import functools <EOL> from nose import SkipTest <EOL> def expected_failure ( test ) : <EOL> @ functools . wraps ( test ) <EOL> def inner ( * args , ** kwargs ) : <EOL> try : <EOL> test ( * args , ** kwargs ) <EOL> except Exception : <EOL> raise SkipTest <EOL> else : <EOL> raise AssertionError ( '<STR_LIT>' ) <EOL> return inner </s>
