SVN: zope.testing/branches/regebro-python3-reloaded/src/zope/testing/renormalizing.py Made some tests work under Python 3. This will be slow, boring work.

Lennart Regebro <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <[email protected]>
Log message for revision 106357:
  Made some tests work under Python 3. This will be slow, boring work.
  

Changed:
  U   zope.testing/branches/regebro-python3-reloaded/src/zope/testing/renormalizing.py

-=-
Modified: zope.testing/branches/regebro-python3-reloaded/src/zope/testing/renormalizing.py
===================================================================
--- zope.testing/branches/regebro-python3-reloaded/src/zope/testing/renormalizing.py	2009-12-09 22:07:34 UTC (rev 106356)
+++ zope.testing/branches/regebro-python3-reloaded/src/zope/testing/renormalizing.py	2009-12-09 22:09:17 UTC (rev 106357)
@@ -213,13 +213,14 @@
     ... ''' + want
     >>> example = doctest.Example(source, want)
     >>> print checker.output_difference(example, got,
-    ...                                 doctest.REPORT_NDIFF),
+    ...                                 doctest.REPORT_NDIFF)
     Differences (ndiff with -expected +actual):
           usage: thundermonkey [options] [url]
         - <blankline>
         + <BLANKLINE>
           options:
               -h    display this help message
+    <BLANKLINE>
 
 
 It is possible to combine RENormalizing checkers for easy reuse:
@@ -237,10 +238,10 @@
 
 Combining a checker with something else does not work:
 
-    >>> lowercase_checker + 5
+    >>> lowercase_checker + 5 # doctest: +ELLIPSIS
     Traceback (most recent call last):
         ...
-    TypeError: unsupported operand type(s) for +: 'instance' and 'int'
+    TypeError: unsupported operand type(s) for ...
 
 """
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.