[ctypes-commit] ctypes/ctypes/test test_loading.py,1.7,1.8
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-03-10 17:58:13
|
Update of /cvsroot/ctypes/ctypes/ctypes/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9727 Modified Files: test_loading.py Log Message: (Try to) fix the test for netbsd. Index: test_loading.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/ctypes/test/test_loading.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** test_loading.py 10 Mar 2006 17:56:16 -0000 1.7 --- test_loading.py 10 Mar 2006 17:58:10 -0000 1.8 *************** *** 18,24 **** elif sys.platform == "sunos5": name = "libc.so" else: name = "libc.so.6" ! print (sys.platform, os.name) cdll.load(name) self.assertRaises(OSError, cdll.load, self.unknowndll) --- 18,26 ---- elif sys.platform == "sunos5": name = "libc.so" + elif sys.platform.startswith("netbsd"): + name = "libc.so" else: name = "libc.so.6" ! ## print (sys.platform, os.name) cdll.load(name) self.assertRaises(OSError, cdll.load, self.unknowndll) |