[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/testing/tests.py fix zcmlfiles import

Bernd Dorn bernd.dorn at lovelysystems.com
Sun Mar 25 06:57:09 EDT 2007


Log message for revision 73585:
  fix zcmlfiles import

Changed:
  U   Zope3/trunk/src/zope/app/testing/tests.py

-=-
Modified: Zope3/trunk/src/zope/app/testing/tests.py
===================================================================
--- Zope3/trunk/src/zope/app/testing/tests.py	2007-03-25 10:34:58 UTC (rev 73584)
+++ Zope3/trunk/src/zope/app/testing/tests.py	2007-03-25 10:57:08 UTC (rev 73585)
@@ -237,19 +237,20 @@
     >>> from zope.configuration import xmlconfig, config
     >>> context = config.ConfigurationMachine()
     >>> xmlconfig.registerCommonDirectives(context)
-    >>> import zope.app
+    >>> import zope.app.zcmlfiles
 
     >>> import warnings
     >>> showwarning = warnings.showwarning
     >>> warnings.showwarning = lambda *a, **k: None
 
-    >>> xmlconfig.include(context, package=zope.app)
+    >>> xmlconfig.include(context, package=zope.app.zcmlfiles)
 
-    >>> xmlconfig.include(context, 'configure.zcml', zope.app)
-    >>> xmlconfig.include(context, 'ftesting.zcml', zope.app)
-    >>> xmlconfig.include(context, 'menus.zcml', zope.app)
-    >>> xmlconfig.include(context, 'meta.zcml', zope.app)
-    >>> xmlconfig.include(context, 'file_not_exists.zcml', zope.app) #doctest: +ELLIPSIS
+    >>> xmlconfig.include(context, 'configure.zcml', zope.app.zcmlfiles)
+    >>> xmlconfig.include(context, 'ftesting.zcml', zope.app.zcmlfiles)
+    >>> xmlconfig.include(context, 'menus.zcml', zope.app.zcmlfiles)
+    >>> xmlconfig.include(context, 'meta.zcml', zope.app.zcmlfiles)
+    >>> xmlconfig.include(context,
+    ...     'file_not_exists.zcml', zope.app.zcmlfiles) #doctest: +ELLIPSIS
     Traceback (most recent call last):
     ...
     IOError: ...



More information about the Zope3-Checkins mailing list