def _unimplemented(func):
 @functools.wraps(func)
 def wrapper(*args, **kwargs):
  try:
   func(*args, **kwargs)
  except TypingError:
   raise unittest._ExpectedFailure(sys.exc_info())
  raise unittest._UnexpectedSuccess

def _unimplemented ( func ) : @ functools . wraps ( func ) def wrapper ( * args , ** kwargs ) : try : func ( * args , ** kwargs ) except TypingError : raise unittest . _ExpectedFailure ( sys . exc_info ( ) ) raise unittest . _UnexpectedSuccess
an expectedfailure like decorator that only expects compilation errors caused by unimplemented functions that fail in no-python mode .