[Checkins] SVN: zope.app.apidoc/trunk/src/zope/app/apidoc/ Fixed a test broken by the previous commit.

Christophe Combelles ccomb at free.fr
Sat Mar 6 19:41:27 EST 2010


Log message for revision 109734:
  Fixed a test broken by the previous commit.
  Adapted another test to Python 2.4
  

Changed:
  U   zope.app.apidoc/trunk/src/zope/app/apidoc/component.txt
  U   zope.app.apidoc/trunk/src/zope/app/apidoc/interface.txt

-=-
Modified: zope.app.apidoc/trunk/src/zope/app/apidoc/component.txt
===================================================================
--- zope.app.apidoc/trunk/src/zope/app/apidoc/component.txt	2010-03-07 00:26:38 UTC (rev 109733)
+++ zope.app.apidoc/trunk/src/zope/app/apidoc/component.txt	2010-03-07 00:41:27 UTC (rev 109734)
@@ -290,7 +290,7 @@
 utilities.
 
   >>> from pprint import pprint
-  >>> pprint(component.getInterfaceInfoDictionary(IFoo))
+  >>> pprint(component.getInterfaceInfoDictionary(IFoo), width=1)
   {'module': 'zope.app.apidoc.doctest', 'name': 'IFoo'}
 
 The functions using this function use it with little care and can also
@@ -471,8 +471,8 @@
   >>> classImplements(MyFactoryType, IFactory)
   >>> ztapi.provideUtility(IFactory, MyFactoryType(), 'MyFactory')
 
-  >>> pprint(component.getFactoryInfoDictionary, width=1)
-  ...     component.getFactories(IMine).next()))
+  >>> pprint(component.getFactoryInfoDictionary(
+  ...     component.getFactories(IMine).next()), width=1)
   {'description': u'',
    'name': u'MyFactory',
    'title': u'',

Modified: zope.app.apidoc/trunk/src/zope/app/apidoc/interface.txt
===================================================================
--- zope.app.apidoc/trunk/src/zope/app/apidoc/interface.txt	2010-03-07 00:26:38 UTC (rev 109733)
+++ zope.app.apidoc/trunk/src/zope/app/apidoc/interface.txt	2010-03-07 00:41:27 UTC (rev 109734)
@@ -237,7 +237,7 @@
 
 This function returns a page-template-friendly dictionary for a field:
 
-  >>> pprint(interface.getFieldInfoDictionary(IFoo['bar']))
+  >>> pprint(interface.getFieldInfoDictionary(IFoo['bar']), width=1)
   {'class': {'name': 'TextLine',
              'path': 'zope/schema/_bootstrapfields/TextLine'},
    'default': "u'My Bar'",
@@ -247,4 +247,4 @@
    'name': 'bar',
    'required': True,
    'required_string': u'required',
-   'title': u'Bar'}
\ No newline at end of file
+   'title': u'Bar'}



More information about the checkins mailing list