[ctypes-commit] ctypes/ctypes/test test_stringptr.py,1.1.2.1,1.1.2.2
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-01-26 21:15:34
|
Update of /cvsroot/ctypes/ctypes/ctypes/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18070/ctypes/test Modified Files: Tag: branch_1_0 test_stringptr.py Log Message: Adapt to library loading changes. Index: test_stringptr.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/ctypes/test/Attic/test_stringptr.py,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** test_stringptr.py 3 Nov 2005 19:49:19 -0000 1.1.2.1 --- test_stringptr.py 26 Jan 2006 21:15:25 -0000 1.1.2.2 *************** *** 8,22 **** elif os.name == "posix": ! if sys.platform == "darwin": ! libc = cdll.LoadLibrary("/usr/lib/libc.dylib") ! elif sys.platform == "cygwin": ! libc = cdll.LoadLibrary("/bin/cygwin1.dll") ! elif sys.platform == "sunos5": ! libc = cdll.LoadLibrary("/lib/libc.so") ! else: ! try: ! libc = cdll.LoadLibrary("/lib/libc.so.6") ! except OSError: ! libc = None class StringPtrTestCase(unittest.TestCase): --- 8,23 ---- elif os.name == "posix": ! libc = cdll.find("c") ! ## if sys.platform == "darwin": ! ## libc = cdll.LoadLibrary("/usr/lib/libc.dylib") ! ## elif sys.platform == "cygwin": ! ## libc = cdll.LoadLibrary("/bin/cygwin1.dll") ! ## elif sys.platform == "sunos5": ! ## libc = cdll.LoadLibrary("/lib/libc.so") ! ## else: ! ## try: ! ## libc = cdll.LoadLibrary("/lib/libc.so.6") ! ## except OSError: ! ## libc = None class StringPtrTestCase(unittest.TestCase): |