def skip_under_travis(fn=None):
 if _travisTesting:
  (skip, msg) = (pytest.skip, 'Cannot be tested under Travis-CI')
  if (fn is not None):
   def _inner():
    skip(msg)
   _inner.__name__ = fn.__name__
   return _inner
  else:
   skip(msg)
 else:
  return fn

def skip_under_travis ( fn = None ) : if _travisTesting : ( skip , msg ) = ( pytest . skip , 'Cannot be tested under Travis-CI' ) if ( fn is not None ) : def _inner ( ) : skip ( msg ) _inner . __name__ = fn . __name__ return _inner else : skip ( msg ) else : return fn
skip if a test is executed under travis testing environment could also be used as a decorator or unparametrized in the code .