[py-svn] r35257 - in py/dist/py/apigen/rest: . testing

fijal at codespeak.net fijal at codespeak.net
Mon Dec 4 16:20:42 CET 2006


Author: fijal
Date: Mon Dec  4 16:20:39 2006
New Revision: 35257

Modified:
   py/dist/py/apigen/rest/genrest.py
   py/dist/py/apigen/rest/testing/test_rest.py
Log:
s/Em/Strong/


Modified: py/dist/py/apigen/rest/genrest.py
==============================================================================
--- py/dist/py/apigen/rest/genrest.py	(original)
+++ py/dist/py/apigen/rest/genrest.py	Mon Dec  4 16:20:39 2006
@@ -356,7 +356,7 @@
         lst = [title, LiteralBlock(self.dsa.get_doc(functionname)),
                LiteralBlock(self.dsa.get_function_definition(functionname))]
         
-        opar = Paragraph(Em('origin'), ":")
+        opar = Paragraph(Strong('origin'), ":")
         if origin:
             linktarget = self.writer.getlink('class', origin.name,
                                              'class_%s' % (origin.name,))
@@ -365,7 +365,7 @@
             opar.add(Text('<UNKNOWN>'))
         lst.append(opar)
 
-        lst.append(Paragraph(Em("where"), ":"))
+        lst.append(Paragraph(Strong("where"), ":"))
         args, retval = self.dsa.get_function_signature(functionname)
         for name, _type in args + [('return value', retval)]:
             l = self.process_type_link(_type)
@@ -385,13 +385,13 @@
         
         local_changes = self.dsa.get_function_local_changes(functionname)
         if local_changes:
-            lst.append(Paragraph(Em('changes in __dict__ after execution'), ":"))
+            lst.append(Paragraph(Strong('changes in __dict__ after execution'), ":"))
             for k, changeset in local_changes.iteritems():
                 lst.append(ListItem('%s: %s' % (k, ', '.join(changeset))))
         
         exceptions = self.dsa.get_function_exceptions(functionname)
         if exceptions:
-            lst.append(Paragraph(Em('exceptions that might appear during '
+            lst.append(Paragraph(Strong('exceptions that might appear during '
                                  'execution'), ":"))
             for exc in exceptions:
                 lst.append(ListItem(exc.__name__))
@@ -406,7 +406,7 @@
         #else:
         source = self.dsa.get_function_source(functionname)
         if source:
-            lst.append(Paragraph(Em('function source'), ":"))
+            lst.append(Paragraph(Strong('function source'), ":"))
             lst.append(LiteralBlock(source))
         
         # call sites..

Modified: py/dist/py/apigen/rest/testing/test_rest.py
==============================================================================
--- py/dist/py/apigen/rest/testing/test_rest.py	(original)
+++ py/dist/py/apigen/rest/testing/test_rest.py	Mon Dec  4 16:20:39 2006
@@ -374,7 +374,7 @@
         assert -1 < source.find("x \:\: <Instance of AnyOf( `Class B`_ , "
                                 "`Class A`_ )>") < call_point
         source = tempdir.join('method_B.a.txt').read()
-        assert source.find('*origin* \: `A`_') > -1
+        assert source.find('**origin** \: `A`_') > -1
         self.check_rest(tempdir)
 
     def test_exc_raising(self):



More information about the pytest-commit mailing list