[Checkins] SVN: GenericSetup/trunk/tests/test_content.py - silenced deprecation warning

Yvo Schubbe y.2006_ at wcm-solutions.de
Fri Nov 3 12:16:00 EST 2006


Log message for revision 71043:
  - silenced deprecation warning

Changed:
  U   GenericSetup/trunk/tests/test_content.py

-=-
Modified: GenericSetup/trunk/tests/test_content.py
===================================================================
--- GenericSetup/trunk/tests/test_content.py	2006-11-03 16:11:05 UTC (rev 71042)
+++ GenericSetup/trunk/tests/test_content.py	2006-11-03 17:15:59 UTC (rev 71043)
@@ -152,7 +152,10 @@
 
     def _setUpAdapters(self):
         from OFS.Folder import Folder
-        from zope.app.tests import ztapi
+        try:
+            from zope.app.testing import ztapi
+        except ImportError:  # BBB, Zope3 < 3.1
+            from zope.app.tests import ztapi
         #from OFS.Image import File
 
         from Products.GenericSetup.interfaces import IFilesystemExporter



More information about the Checkins mailing list