summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-05-03 18:35:39 (GMT)
committerThomas Heller <theller@ctypes.org>2006-05-03 18:35:39 (GMT)
commit14f3da7585b32fe0fd1367bf5ada1e5aeb6f1f0e (patch)
treeb3124f1026f710578e3e0b0ddd142dab87bcd933 /Lib
parent1bb62309307fa8a199ef5a53ae0f775dfff4fa3f (diff)
downloadcpython-14f3da7585b32fe0fd1367bf5ada1e5aeb6f1f0e.zip
cpython-14f3da7585b32fe0fd1367bf5ada1e5aeb6f1f0e.tar.gz
cpython-14f3da7585b32fe0fd1367bf5ada1e5aeb6f1f0e.tar.bz2
Don't fail the tests when libglut.so or libgle.so cannot be loaded.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_find.py18
1 files changed, 16 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_find.py b/Lib/ctypes/test/test_find.py
index 54c663c..b2d08fd 100644
--- a/Lib/ctypes/test/test_find.py
+++ b/Lib/ctypes/test/test_find.py
@@ -39,9 +39,23 @@ class Test_OpenGL_libs(unittest.TestCase):
if lib_glu:
self.glu = CDLL(lib_glu, RTLD_GLOBAL)
if lib_glut:
- self.glut = CDLL(lib_glut)
+ # On some systems, additional libraries seem to be
+ # required, loading glut fails with
+ # "OSError: /usr/lib/libglut.so.3: undefined symbol: XGetExtensionVersion"
+ # I cannot figure out how to repair the test on these
+ # systems (red hat), so we ignore it when the glut or gle
+ # libraries cannot be loaded. See also:
+ # https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1478253&group_id=5470
+ # http://mail.python.org/pipermail/python-dev/2006-May/064789.html
+ try:
+ self.glut = CDLL(lib_glut)
+ except OSError:
+ pass
if lib_gle:
- self.gle = CDLL(lib_gle)
+ try:
+ self.gle = CDLL(lib_gle)
+ except OSError:
+ pass
if lib_gl:
def test_gl(self):