[ctypes-commit] ctypes/unittests test_codegen.py,1.1.2.2,1.1.2.3
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-08-30 06:34:00
|
Update of /cvsroot/ctypes/ctypes/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18815 Modified Files: Tag: branch_1_0 test_codegen.py Log Message: Try to catch the problem that gccxml is not available. Index: test_codegen.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/unittests/Attic/test_codegen.py,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** test_codegen.py 24 Aug 2005 08:59:45 -0000 1.1.2.2 --- test_codegen.py 30 Aug 2005 06:33:52 -0000 1.1.2.3 *************** *** 15,19 **** args = "-q -I%s _ctypes_test.h -o test.xml" % source_dir ! h2xml.main(["testing"] + args.split()) args = "test.xml -o test.py -l%s" % _ctypes_test.__file__ --- 15,28 ---- args = "-q -I%s _ctypes_test.h -o test.xml" % source_dir ! try: ! h2xml.main(["testing"] + args.split()) ! except OSError, detail: ! # gccxml probably not installed. This error is only ! # raised when the subprocess module is used to invoke ! # gccxml. ! import errno ! if detail.errno == errno.ENOENT: ! return ! raise args = "test.xml -o test.py -l%s" % _ctypes_test.__file__ |