def if_safe_multiprocessing_with_blas(func):
 @wraps(func)
 def run_test(*args, **kwargs):
  if (sys.platform == 'darwin'):
   raise SkipTest('Possible multi-process bug with some BLAS')
  return func(*args, **kwargs)
 return run_test

def if_safe_multiprocessing_with_blas ( func ) : @ wraps ( func ) def run_test ( * args , ** kwargs ) : if ( sys . platform == 'darwin' ) : raise SkipTest ( 'Possible multi-process bug with some BLAS' ) return func ( * args , ** kwargs ) return run_test
decorator for tests involving both blas calls and multiprocessing .