def test_import_vispy_no_pyopengl():
 allmodnames = loaded_vispy_modules('vispy.gloo.gl.gl2', 2, True)
 assert_not_in('OpenGL', allmodnames)
 allmodnames = loaded_vispy_modules('vispy.app', 2, True)
 assert_not_in('OpenGL', allmodnames)
 allmodnames = loaded_vispy_modules('vispy.scene', 2, True)
 assert_not_in('OpenGL', allmodnames)

def test_import_vispy_no_pyopengl ( ) : allmodnames = loaded_vispy_modules ( 'vispy.gloo.gl.gl2' , 2 , True ) assert_not_in ( 'OpenGL' , allmodnames ) allmodnames = loaded_vispy_modules ( 'vispy.app' , 2 , True ) assert_not_in ( 'OpenGL' , allmodnames ) allmodnames = loaded_vispy_modules ( 'vispy.scene' , 2 , True ) assert_not_in ( 'OpenGL' , allmodnames )
importing vispy .