[ctypes-commit] ctypes/unittests/com test_sysalloc.py,1.5,1.6
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2004-10-14 13:16:33
|
Update of /cvsroot/ctypes/ctypes/unittests/com In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14975 Modified Files: test_sysalloc.py Log Message: Use the debug version of the test dll, when running a debug build. Index: test_sysalloc.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/unittests/com/test_sysalloc.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** test_sysalloc.py 16 Sep 2004 20:21:07 -0000 1.5 --- test_sysalloc.py 14 Oct 2004 13:16:23 -0000 1.6 *************** *** 4,18 **** from ctypes.com.automation import BSTR, VARIANT ! ! def find_test_dll(): ! import sys, os ! if os.name == "nt": ! name = "_ctypes_test.pyd" ! else: ! name = "_ctypes_test.so" ! for p in sys.path: ! f = os.path.join(p, name) ! if os.path.isfile(f): ! return f class MallocSpyTest(unittest.TestCase): --- 4,8 ---- from ctypes.com.automation import BSTR, VARIANT ! import _ctypes_test class MallocSpyTest(unittest.TestCase): *************** *** 76,80 **** # *pbstr = SysAllocString(L"Goodbye!"); # } ! GetString = CDLL(find_test_dll()).GetString # XXX Explain why we cannot create b outside the loop! --- 66,70 ---- # *pbstr = SysAllocString(L"Goodbye!"); # } ! GetString = CDLL(_ctypes_test.__file__).GetString # XXX Explain why we cannot create b outside the loop! |