[CMF-checkins] CVS: CMF - all_cmf_tests.py:1.6
Tres Seaver
tseaver@zope.com
Tue, 19 Nov 2002 09:42:24 -0500
Update of /cvs-repository/CMF
In directory cvs.zope.org:/tmp/cvs-serv23894
Modified Files:
all_cmf_tests.py
Log Message:
- Ensure that tests will still run atop Zope 2.5, which didn't have
'Zope.startup'.
=== CMF/all_cmf_tests.py 1.5 => 1.6 ===
--- CMF/all_cmf_tests.py:1.5 Tue Nov 19 06:47:07 2002
+++ CMF/all_cmf_tests.py Tue Nov 19 09:42:24 2002
@@ -15,7 +15,12 @@
def test_suite():
import Zope
- Zope.startup()
+
+ try:
+ Zope.startup()
+ except AttributeError: # Zope <= 2.6.0
+ pass
+
from Products.CMFCore.tests.base.utils import build_test_suite
suite = unittest.TestSuite()