@requires_pyopengl()
def test_glplus():
 gl.use_gl('gl+')
 fnames = set([name for name in dir(gl) if name.startswith('gl')])
 assert (len(fnames.difference(function_names).difference(['gl2'])) > 50)
 cnames = set([name for name in dir(gl) if name.startswith('GL')])
 assert (len(cnames.difference(constant_names)) > 50)
 gl.use_gl('gl2')
 _test_function_names(gl)
 _test_constant_names(gl)

@ requires_pyopengl ( ) def test_glplus ( ) : gl . use_gl ( 'gl+' ) fnames = set ( [ name for name in dir ( gl ) if name . startswith ( 'gl' ) ] ) assert ( len ( fnames . difference ( function_names ) . difference ( [ 'gl2' ] ) ) > 50 ) cnames = set ( [ name for name in dir ( gl ) if name . startswith ( 'GL' ) ] ) assert ( len ( cnames . difference ( constant_names ) ) > 50 ) gl . use_gl ( 'gl2' ) _test_function_names ( gl ) _test_constant_names ( gl )
run glplus .