summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-03-16 20:09:22 (GMT)
committerThomas Heller <theller@ctypes.org>2006-03-16 20:09:22 (GMT)
commit23e408603cffc2c1e515230deb7239e95f6173cb (patch)
tree4848713a014a4b1a17952fc2e9dcfac00cd2dada
parent0c6b0e9d05e516a2a02b14e2f807b9ddfbc5beb4 (diff)
downloadcpython-23e408603cffc2c1e515230deb7239e95f6173cb.zip
cpython-23e408603cffc2c1e515230deb7239e95f6173cb.tar.gz
cpython-23e408603cffc2c1e515230deb7239e95f6173cb.tar.bz2
Fix a test that fails when libGL.so and libGLU.so are not installed (on posix systems).
-rw-r--r--Lib/ctypes/test/test_posix.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_posix.py b/Lib/ctypes/test/test_posix.py
index 2b4fdff..fe0a40a 100644
--- a/Lib/ctypes/test/test_posix.py
+++ b/Lib/ctypes/test/test_posix.py
@@ -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":