[CMF-checkins] CVS: Products/CMFCalendar/tests - test_Event.py:1.12.2.2 test_all.py:1.9.2.1

Tres Seaver tseaver at palladion.com
Fri Jul 8 08:29:00 EDT 2005


Update of /cvs-repository/Products/CMFCalendar/tests
In directory cvs.zope.org:/tmp/cvs-serv17354/CMFCalendar/tests

Modified Files:
      Tag: CMF-1_5-branch
	test_Event.py test_all.py 
Log Message:


 - Moved tests which used to 'import Zope' to try 'import Zope2'
   (with a fallback for Zope 2.7).  Thanks to sacco for the patch!
   (http://www.zope.org/Collectors/CMF/362)



=== Products/CMFCalendar/tests/test_Event.py 1.12.2.1 => 1.12.2.2 ===
--- Products/CMFCalendar/tests/test_Event.py:1.12.2.1	Wed Jun 15 06:14:29 2005
+++ Products/CMFCalendar/tests/test_Event.py	Fri Jul  8 08:28:29 2005
@@ -17,8 +17,11 @@
 
 from unittest import TestCase, TestSuite, makeSuite, main
 import Testing
-import Zope
-Zope.startup()
+try:
+    import Zope2
+except: 	# BBB: for Zope 2.7
+    import Zope as Zope2
+Zope2.startup()
 
 from DateTime import DateTime
 


=== Products/CMFCalendar/tests/test_all.py 1.9 => 1.9.2.1 ===
--- Products/CMFCalendar/tests/test_all.py:1.9	Thu Aug 12 11:07:38 2004
+++ Products/CMFCalendar/tests/test_all.py	Fri Jul  8 08:28:29 2005
@@ -17,8 +17,11 @@
 
 from unittest import main
 import Testing
-import Zope
-Zope.startup()
+try:
+    import Zope2
+except: 	# BBB: for Zope 2.7
+    import Zope as Zope2
+Zope2.startup()
 
 from Products.CMFCore.tests.base.utils import build_test_suite
 



More information about the CMF-checkins mailing list