[Zodb-checkins] CVS: StandaloneZODB - test.py:1.10.6.2
Barry Warsaw
barry@wooz.org
Wed, 19 Dec 2001 17:55:14 -0500
Update of /cvs-repository/StandaloneZODB
In directory cvs.zope.org:/tmp/cvs-serv31592
Modified Files:
Tag: Standby-branch
test.py
Log Message:
Merging a change from the StandaloneZODB-1.0 branch:
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.6.1 => 1.10.6.2 ===
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: