def _fix_osmesa_gl_lib_if_testing():
 test_name = os.getenv('_VISPY_TESTING_APP', None)
 if (test_name == 'osmesa'):
  from ...util.osmesa_gl import fix_osmesa_gl_lib
  fix_osmesa_gl_lib()

def _fix_osmesa_gl_lib_if_testing ( ) : test_name = os . getenv ( '_VISPY_TESTING_APP' , None ) if ( test_name == 'osmesa' ) : from ... util . osmesa_gl import fix_osmesa_gl_lib fix_osmesa_gl_lib ( )
this functions checks if we a running test with the osmesa backends and fix the gl library if needed .