[ctypes-commit] ctypes/ctypes/test test_loading.py,1.16,1.17
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-04-13 18:48:34
|
Update of /cvsroot/ctypes/ctypes/ctypes/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3373 Modified Files: test_loading.py Log Message: Enable printing useful info when the 'printing' resource is enabled. Index: test_loading.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/ctypes/test/test_loading.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** test_loading.py 13 Apr 2006 18:42:30 -0000 1.16 --- test_loading.py 13 Apr 2006 18:48:29 -0000 1.17 *************** *** 3,6 **** --- 3,7 ---- import os, StringIO from ctypes.util import find_library + from ctypes.test import is_resource_enabled libc_name = None *************** *** 20,26 **** else: libc_name = line.split()[2] - ## print "libc_name is", libc_name break class LoaderTest(unittest.TestCase): --- 21,29 ---- else: libc_name = line.split()[2] break + if is_resource_enabled("printing"): + print "libc_name is", libc_name + class LoaderTest(unittest.TestCase): |