[ctypes-commit] ctypes/ctypes/test test_posix.py,1.4.4.1,1.4.4.2
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-04-13 09:08:17
|
Update of /cvsroot/ctypes/ctypes/ctypes/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25697 Modified Files: Tag: LoadLibrary_branch test_posix.py Log Message: More work in progress. Index: test_posix.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/ctypes/test/test_posix.py,v retrieving revision 1.4.4.1 retrieving revision 1.4.4.2 diff -C2 -d -r1.4.4.1 -r1.4.4.2 *** test_posix.py 13 Apr 2006 09:05:48 -0000 1.4.4.1 --- test_posix.py 13 Apr 2006 09:08:06 -0000 1.4.4.2 *************** *** 10,19 **** def test_GL(self): from ctypes._loader import _findLib ! print "GL?", _findLib("GL") ! if os.path.exists('/usr/lib/libGL.so'): ! cdll.load('libGL.so', mode=RTLD_GLOBAL) ! print "GL?", _findLib("GLU") ! if os.path.exists('/usr/lib/libGLU.so'): ! cdll.load('libGLU.so') ##if os.name == "posix" and sys.platform != "darwin": --- 10,21 ---- def test_GL(self): from ctypes._loader import _findLib ! lib_gl = _findLib("GL") ! print "GL", lib_gl ! if lib_gl: ! CDLL(lib_gl, mode=RTLD_GLOBAL) ! lib_glu _findLib("GLU") ! print "GLU", lib_glu ! if lib_glu: ! CDLL(lib_glu) ##if os.name == "posix" and sys.platform != "darwin": |