[pywin32-checkins] pywin32/win32/test testall.py,1.3,1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-03-05 05:53:47
|
Update of /cvsroot/pywin32/pywin32/win32/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19087 Modified Files: testall.py Log Message: Always avoid trying to import _winxptheme (ideally we should check the platform - later!) Index: testall.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/test/testall.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** testall.py 2 Nov 2003 10:15:43 -0000 1.3 --- testall.py 5 Mar 2005 05:53:39 -0000 1.4 *************** *** 13,19 **** base, ext = os.path.splitext(name) if (ext==".pyd") and \ (is_debug and base.endswith("_d") or \ not is_debug and not base.endswith("_d")): ! __import__(base) num += 1 --- 13,24 ---- base, ext = os.path.splitext(name) if (ext==".pyd") and \ + name != "_winxptheme.pyd" and \ (is_debug and base.endswith("_d") or \ not is_debug and not base.endswith("_d")): ! try: ! __import__(base) ! except ImportError: ! print "FAILED to import", name ! raise num += 1 |