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

Barry Warsaw barry@wooz.org
Thu, 6 Jun 2002 15:36:26 -0400


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

Modified Files:
	test.py 
Log Message:
get_suite(): If we get an ImportError during package_import() just
skip the test and print a warning.


=== StandaloneZODB/test.py 1.13 => 1.14 ===
     assert file[-3:] == '.py'
     modname = module_from_path(file)
-    mod = package_import(modname)
+    try:
+        mod = package_import(modname)
+    except ImportError:
+        print >> sys.stderr, 'Test skipped:', modname
+        return None
     try:
         return mod.test_suite()
     except AttributeError: