[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/ Fixed test failures from recent checkins.

Dmitry Vasiliev dima at hlabs.spb.ru
Wed Sep 8 05:56:57 EDT 2004


Log message for revision 27471:
  Fixed test failures from recent checkins.
  


Changed:
  U   Zope3/trunk/src/zope/app/apidoc/classmodule/browser.py
  U   Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py


-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/browser.py	2004-09-08 07:16:06 UTC (rev 27470)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/browser.py	2004-09-08 09:56:57 UTC (rev 27471)
@@ -376,7 +376,7 @@
           >>> view = getFunctionDetailsView()
 
           >>> view.getDocString()
-          '<p>This is the foo function.</p>\n'
+          u'<p>This is the foo function.</p>\n'
         """
         return renderText(self.context.getDocString() or '',
                           zapi.getParent(self.context).getPath())

Modified: Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py	2004-09-08 07:16:06 UTC (rev 27470)
+++ Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py	2004-09-08 09:56:57 UTC (rev 27471)
@@ -311,8 +311,8 @@
 
           >>> attrs = details.getAttributes()
           >>> pprint(attrs)
-          [[('doc', '<p>This is bar.</p>\n'), ('name', 'bar')],
-           [('doc', '<p>This is foo.</p>\n'), ('name', 'foo')]]
+          [[('doc', u'<p>This is bar.</p>\n'), ('name', 'bar')],
+           [('doc', u'<p>This is foo.</p>\n'), ('name', 'foo')]]
         """
         # The `Interface` and `Attribute` class have no security declarations,
         # so that we are not able to access any API methods on proxied
@@ -339,10 +339,10 @@
 
           >>> methods = details.getMethods()
           >>> pprint(methods)
-          [[('doc', '<p>This is blah.</p>\n'),
+          [[('doc', u'<p>This is blah.</p>\n'),
             ('name', 'blah'),
             ('signature', '()')],
-           [('doc', '<p>This is get.</p>\n'),
+           [('doc', u'<p>This is get.</p>\n'),
             ('name', 'get'),
             ('signature', '(key, default=None)')]]
         """        
@@ -372,7 +372,7 @@
              [('name', 'TextLine'),
               ('path', 'zope/schema/_bootstrapfields/TextLine')]),
             ('default', "u'Foo'"),
-            ('description', '<p>Title</p>\n'),
+            ('description', u'<p>Title</p>\n'),
             ('iface',
              [('id', 'zope.schema.interfaces.ITextLine'),
               ('name', 'ITextLine')]),
@@ -382,7 +382,7 @@
              [('name', 'Text'),
               ('path', 'zope/schema/_bootstrapfields/Text')]),
             ('default', "u'Foo.'"),
-            ('description', '<p>Desc</p>\n'),
+            ('description', u'<p>Desc</p>\n'),
             ('iface',
              [('id', 'zope.schema.interfaces.IText'), ('name', 'IText')]),
             ('name', 'description'),



More information about the Zope3-Checkins mailing list