[Zope3-checkins] 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 regebro at gmail.com
Wed Dec 9 17:09:18 EST 2009


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 ...
 
 """
 



More information about the Zope3-Checkins mailing list