[Zodb-checkins] CVS: ZEO - test.py:1.1.2.4
Jeremy Hylton
jeremy@zope.com
Thu, 30 May 2002 18:02:22 -0400
Update of /cvs-repository/ZEO
In directory cvs.zope.org:/tmp/cvs-serv11516
Modified Files:
Tag: ZEO2-branch
test.py
Log Message:
Only catch an attribute error cause by a failure to find a
test_suite() function.
=== ZEO/test.py 1.1.2.3 => 1.1.2.4 ===
mod = package_import(modname)
try:
- return mod.test_suite()
- except AttributeError:
+ suite_factory = mod.test_suite
+ except AttributeError, err:
return None
+ return suite_factory()
def match(rx, s):
if not rx: