@requires_application()
def test_basics_desktop():
 _test_basics('gl2')
 with Canvas():
  _test_setting_parameters()
  _test_enabling_disabling()
  _test_setting_stuff()
  _test_object_creation_and_deletion()
  _test_fbo()
  try:
   gl.gl2._get_gl_func('foo', None, ())
  except RuntimeError as exp:
   exp = str(exp)
   assert ('version' in exp)
   assert ('unknown' not in exp)
  gl.glFinish()

@ requires_application ( ) def test_basics_desktop ( ) : _test_basics ( 'gl2' ) with Canvas ( ) : _test_setting_parameters ( ) _test_enabling_disabling ( ) _test_setting_stuff ( ) _test_object_creation_and_deletion ( ) _test_fbo ( ) try : gl . gl2 . _get_gl_func ( 'foo' , None , ( ) ) except RuntimeError as exp : exp = str ( exp ) assert ( 'version' in exp ) assert ( 'unknown' not in exp ) gl . glFinish ( )
test desktop gl backend for basic functionality .