def ensure_experimental(test_fn):
 def wrapper(self, *args, **kwargs):
  JunitTestsConcurrencyIntegrationTest.USE_EXPERIMENTAL_RUNNER = True
  test_fn(self, *args, **kwargs)
  JunitTestsConcurrencyIntegrationTest.USE_EXPERIMENTAL_RUNNER = False
  test_fn(self, *args, **kwargs)
 return wrapper

def ensure_experimental ( test_fn ) : def wrapper ( self , * args , ** kwargs ) : JunitTestsConcurrencyIntegrationTest . USE_EXPERIMENTAL_RUNNER = True test_fn ( self , * args , ** kwargs ) JunitTestsConcurrencyIntegrationTest . USE_EXPERIMENTAL_RUNNER = False test_fn ( self , * args , ** kwargs ) return wrapper
decorator for running once with and once without the --use-experimental-runner flag .