[Checkins] SVN: manuel/branches/jim-multiple-doctest/src/manuel/README.txt Failing test, now debug ...

Jim Fulton jim at zope.com
Wed Jan 19 10:54:03 EST 2011


Log message for revision 119717:
  Failing test, now debug ...

Changed:
  U   manuel/branches/jim-multiple-doctest/src/manuel/README.txt

-=-
Modified: manuel/branches/jim-multiple-doctest/src/manuel/README.txt
===================================================================
--- manuel/branches/jim-multiple-doctest/src/manuel/README.txt	2011-01-19 15:47:33 UTC (rev 119716)
+++ manuel/branches/jim-multiple-doctest/src/manuel/README.txt	2011-01-19 15:54:02 UTC (rev 119717)
@@ -296,6 +296,30 @@
     Got:
         2
 
+Multiple doctest parsers
+~~~~~~~~~~~~~~~~~~~~~~~~
+
+You may use server doctest parsers in the same session, for example,
+to support shell commands and Python code in the same document.
+
+    >>> m = (manuel.doctest.Manuel(parser=DocTestPyParser()) +
+    ...      manuel.doctest.Manuel())
+
+    >>> document = manuel.Document("""
+    ...
+    ...     py> i = 0
+    ...     py> i += 1
+    ...     py> i
+    ...     1
+    ...
+    ...     >>> j = 0
+    ...     >>> j += 1
+    ...     >>> j
+    ...     1
+    ... """)
+    >>> document.process_with(m, globs={})
+    >>> print document.formatted(),
+
 Globals
 -------
 



More information about the checkins mailing list