[pywin32-checkins] pywin32/win32/test testall.py,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2007-05-24 05:39:14
|
Update of /cvsroot/pywin32/pywin32/win32/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15068/win32/test Modified Files: testall.py Log Message: Don't let a simple import error stop other tests from running. Index: testall.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/test/testall.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** testall.py 5 Mar 2005 05:53:39 -0000 1.4 --- testall.py 24 May 2007 05:39:13 -0000 1.5 *************** *** 36,40 **** base, ext = os.path.splitext(file) if ext=='.py' and os.path.basename(me) != file: ! mod = __import__(base) if hasattr(mod, "suite"): test = mod.suite() --- 36,45 ---- base, ext = os.path.splitext(file) if ext=='.py' and os.path.basename(me) != file: ! try: ! mod = __import__(base) ! except ImportError, why: ! print "FAILED to import test module" ! print why ! continue if hasattr(mod, "suite"): test = mod.suite() |