[CMF-checkins] CVS: CMF/CMFCore/tests/base - testcase.py:1.8
Yvo Schubbe
y.2004_ at wcm-solutions.de
Thu Apr 15 12:31:02 EDT 2004
Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv11831/CMFCore/tests/base
Modified Files:
testcase.py
Log Message:
- fixed Zope 2.5 compatibility
=== CMF/CMFCore/tests/base/testcase.py 1.7 => 1.8 ===
--- CMF/CMFCore/tests/base/testcase.py:1.7 Thu Apr 8 10:23:07 2004
+++ CMF/CMFCore/tests/base/testcase.py Thu Apr 15 12:31:00 2004
@@ -1,5 +1,9 @@
import Zope
-Zope.startup()
+try:
+ Zope.startup()
+except AttributeError:
+ # for Zope versions before 2.6.1
+ pass
from unittest import TestCase
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
More information about the CMF-checkins
mailing list