Fix a test that fails when libGL.so and libGLU.so are not installed (on posix systems).

This commit is contained in:
Thomas Heller 2006-03-16 20:09:22 +00:00
parent 0c6b0e9d05
commit 23e408603c
1 changed files with 4 additions and 2 deletions

View File

@ -8,8 +8,10 @@ if os.name == "posix" and sys.platform == "linux2":
class TestRTLD_GLOBAL(unittest.TestCase):
def test_GL(self):
cdll.load('libGL.so', mode=RTLD_GLOBAL)
cdll.load('libGLU.so')
if os.path.exists('/usr/lib/libGL.so'):
cdll.load('libGL.so', mode=RTLD_GLOBAL)
if os.path.exists('/usr/lib/libGLU.so'):
cdll.load('libGLU.so')
##if os.name == "posix" and sys.platform != "darwin":