[Zodb-checkins] CVS: StandaloneZODB - test.py:1.10.4.1

Barry Warsaw barry@wooz.org
Wed, 19 Dec 2001 12:21:48 -0500


Update of /cvs-repository/StandaloneZODB
In directory cvs.zope.org:/tmp/cvs-serv18810

Modified Files:
      Tag: StandaloneZODB-1_0-branch
	test.py 
Log Message:
get_suite(): Don't crap out on import (or other) errors that occur in
package_import().  Print the exception, the broken module, and
continue on.


=== StandaloneZODB/test.py 1.10 => 1.10.4.1 ===
     assert file[-3:] == '.py'
     modname = module_from_path(file)
-    mod = package_import(modname)
+    try:
+        mod = package_import(modname)
+    except Exception, e:
+        print '%s skipped: %s' % (modname, e)
+        return None
     try:
         return mod.test_suite()
     except AttributeError: