[Python-checkins] r43088 - python/trunk/Lib/ctypes/test/test_posix.py
thomas.heller
python-checkins at python.org
Thu Mar 16 21:09:23 CET 2006
Author: thomas.heller
Date: Thu Mar 16 21:09:22 2006
New Revision: 43088
Modified:
python/trunk/Lib/ctypes/test/test_posix.py
Log:
Fix a test that fails when libGL.so and libGLU.so are not installed (on posix systems).
Modified: python/trunk/Lib/ctypes/test/test_posix.py
==============================================================================
--- python/trunk/Lib/ctypes/test/test_posix.py (original)
+++ python/trunk/Lib/ctypes/test/test_posix.py Thu Mar 16 21:09:22 2006
@@ -8,8 +8,10 @@
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":
More information about the Python-checkins
mailing list