Ejemplo n.º 1
0
 def wrapper(*args, **kwargs):
     """Run the test method, and convert exceptions."""
     try:
         result = method(*args, **kwargs)
     except StopEverything:
         raise unittest.SkipTest("StopEverything!")
     return result
Ejemplo n.º 2
0
 def _wrapper(*args, **kwargs):
     try:
         result = method(*args, **kwargs)
     except StopEverything:
         raise unittest.SkipTest("StopEverything!")
     return result
Ejemplo n.º 3
0
def skip(msg=None):
    """Skip the current test."""
    raise unittest.SkipTest(msg)