[Checkins] SVN: zope.app.publication/trunk/ make zope.testing an optional (test) dependency

Roger Ineichen roger at projekt01.ch
Fri Dec 25 17:44:39 EST 2009


Log message for revision 107069:
  make zope.testing an optional (test) dependency

Changed:
  U   zope.app.publication/trunk/CHANGES.txt
  U   zope.app.publication/trunk/src/zope/app/publication/requestpublicationregistry.py

-=-
Modified: zope.app.publication/trunk/CHANGES.txt
===================================================================
--- zope.app.publication/trunk/CHANGES.txt	2009-12-25 07:37:01 UTC (rev 107068)
+++ zope.app.publication/trunk/CHANGES.txt	2009-12-25 22:44:38 UTC (rev 107069)
@@ -5,6 +5,7 @@
 3.10.1 (unreleased)
 -------------------
 
+- make zope.testing an optional (test) dependency
 
 3.10.0 (2009-12-15)
 -------------------

Modified: zope.app.publication/trunk/src/zope/app/publication/requestpublicationregistry.py
===================================================================
--- zope.app.publication/trunk/src/zope/app/publication/requestpublicationregistry.py	2009-12-25 07:37:01 UTC (rev 107068)
+++ zope.app.publication/trunk/src/zope/app/publication/requestpublicationregistry.py	2009-12-25 22:44:38 UTC (rev 107069)
@@ -110,5 +110,9 @@
 
 factoryRegistry = RequestPublicationRegistry()
 
-from zope.testing import cleanup
-cleanup.addCleanUp(lambda : factoryRegistry.__init__())
+try:
+    import zope.testing.cleanup
+except ImportError:
+    pass
+else:
+    zope.testing.cleanup.addCleanUp(lambda : factoryRegistry.__init__())



More information about the checkins mailing list