def expectedFailureIf(condition):
 if condition:
  return expectedFailure
 return (lambda func: func)

def expectedFailureIf ( condition ) : if condition : return expectedFailure return ( lambda func : func )
marks a test as an expected failure if condition is met .