def requires_application(backend=None, has=(), capable=()):
 (good, msg) = has_application(backend, has, capable)
 dec_backend = np.testing.dec.skipif((not good), ('Skipping test: %s' % msg))
 try:
  import pytest
 except Exception:
  return dec_backend
 dec_app = pytest.mark.vispy_app_test
 return composed(dec_app, dec_backend)

def requires_application ( backend = None , has = ( ) , capable = ( ) ) : ( good , msg ) = has_application ( backend , has , capable ) dec_backend = np . testing . dec . skipif ( ( not good ) , ( 'Skipping test: %s' % msg ) ) try : import pytest except Exception : return dec_backend dec_app = pytest . mark . vispy_app_test return composed ( dec_app , dec_backend )
return a decorator for tests that require an application .