[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/doctest.py remove some dead code and add a test

Benji York benji at zope.com
Wed Jul 12 09:57:40 EDT 2006


Log message for revision 69104:
  remove some dead code and add a test
  

Changed:
  U   zope.testing/trunk/src/zope/testing/doctest.py

-=-
Modified: zope.testing/trunk/src/zope/testing/doctest.py
===================================================================
--- zope.testing/trunk/src/zope/testing/doctest.py	2006-07-12 13:10:43 UTC (rev 69103)
+++ zope.testing/trunk/src/zope/testing/doctest.py	2006-07-12 13:57:39 UTC (rev 69104)
@@ -646,19 +646,6 @@
                             for match in matches:
                                 footnotes[match.group(1)] = []
 
-                            # XXX is this code (through "continue") needed?
-
-                            # throw away all the prose leading up to the last
-                            # footnote definition in the prose, this is so we
-                            # don't confuse a previous footnote end with the
-                            # end of *this* footnote
-                            tail = x[match.end()+1:]
-
-                            if self._FOOTNOTE_END_RE.search(tail):
-                                # over before it began
-                                raise 'hmm'
-                                continue
-
                             in_footnote = True
                             name = match.group(1)
                             footnote = []
@@ -2903,6 +2890,15 @@
         >>> three = 3
 
 
+    More than one footnote can be referenced at a time [1]_ [2]_
+
+        >>> counter
+        6
+
+    .. [2] let's multiply ``counter`` by two
+        >>> counter *= 2
+
+
     Parsing Details
     ---------------
 



More information about the Zope3-Checkins mailing list