[Checkins] SVN: PluginRegistry/trunk/tests/test_exportimport.py - get rid of a deprecation warning under Zope > 2.8

Jens Vagelpohl cvs-admin at zope.org
Sun Jun 18 07:44:03 EDT 2006


Log message for revision 68733:
  - get rid of a deprecation warning under Zope > 2.8

Changed:
  U   PluginRegistry/trunk/tests/test_exportimport.py

-=-
Modified: PluginRegistry/trunk/tests/test_exportimport.py
===================================================================
--- PluginRegistry/trunk/tests/test_exportimport.py	2006-06-18 10:04:58 UTC (rev 68732)
+++ PluginRegistry/trunk/tests/test_exportimport.py	2006-06-18 11:44:00 UTC (rev 68733)
@@ -33,7 +33,11 @@
     from Products.GenericSetup.utils import _getDottedName
 
     from zope.interface import Interface
-    from zope.app.tests.placelesssetup import PlacelessSetup
+    try:
+        from zope.app.testing.placelesssetup import PlacelessSetup
+    except ImportError:
+        # BBB for Zope 2.8
+        from zope.app.tests.placelesssetup import PlacelessSetup
 
     class IFoo(Interface):
         pass



More information about the Checkins mailing list