[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/pagetemplate/metaconfigure.py make zope.testing dep soft

Bernd Dorn bernd.dorn at lovelysystems.com
Mon Mar 26 08:01:51 EDT 2007


Log message for revision 73621:
  make zope.testing dep soft

Changed:
  U   Zope3/trunk/src/zope/app/pagetemplate/metaconfigure.py

-=-
Modified: Zope3/trunk/src/zope/app/pagetemplate/metaconfigure.py
===================================================================
--- Zope3/trunk/src/zope/app/pagetemplate/metaconfigure.py	2007-03-26 12:01:46 UTC (rev 73620)
+++ Zope3/trunk/src/zope/app/pagetemplate/metaconfigure.py	2007-03-26 12:01:50 UTC (rev 73621)
@@ -20,7 +20,6 @@
 
 from zope.app.pagetemplate.engine import Engine, _Engine
 from zope.app.pagetemplate.engine import TrustedEngine, _TrustedEngine
-from zope.testing.cleanup import addCleanUp
 from zope.interface import Interface
 from zope.configuration.fields import GlobalObject
 from zope.schema import TextLine
@@ -60,4 +59,10 @@
     TrustedEngine.__init__()
     _TrustedEngine(TrustedEngine)
 
-addCleanUp(clear)
+
+try:
+    from zope.testing.cleanup import addCleanUp
+except ImportError:
+    pass
+else:
+    addCleanUp(clear)



More information about the Zope3-Checkins mailing list