[Zope3-checkins] SVN: zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/test Some more Python 3.x differences.

Lennart Regebro regebro at gmail.com
Mon Dec 14 08:54:05 EST 2009


Log message for revision 106487:
  Some more Python 3.x differences.
  

Changed:
  U   zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-colors.txt
  U   zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-progress.txt
  U   zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/tests.py

-=-
Modified: zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-colors.txt
===================================================================
--- zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-colors.txt	2009-12-14 13:53:08 UTC (rev 106486)
+++ zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-colors.txt	2009-12-14 13:54:04 UTC (rev 106487)
@@ -71,7 +71,7 @@
 A failed test run highlights the failures in red:
 
     >>> sys.argv = 'test -c --tests-pattern ^sampletests(f|_e|_f)?$ '.split()
-    >>> testrunner.run_internal(defaults)
+    >>> testrunner.run_internal(defaults) #doctest: +ELLIPSIS
     {normal}Running samplelayers.Layer1 tests:{normal}
       Set up samplelayers.Layer1 in {green}0.000{normal} seconds.
     {normal}  Ran {green}9{normal} tests with {green}0{normal} failures and {green}0{normal} errors in {green}0.001{normal} seconds.{normal}
@@ -117,7 +117,7 @@
     Exception raised:
     {red}    Traceback (most recent call last):{normal}
     {red}      File ".../doctest.py", line 1356, in __run{normal}
-    {red}        compileflags, 1) in test.globs{normal}
+    {red}        compileflags, 1)... test.globs...{normal}
     {red}      File "<doctest sample2.sampletests_e.eek[0]>", line 1, in ?{normal}
     {red}        f(){normal}
     {red}      File "testrunner-ex/sample2/sampletests_e.py", line 19, in f{normal}
@@ -155,7 +155,7 @@
     Exception raised:
     {red}    Traceback (most recent call last):{normal}
     {red}      File ".../doctest.py", line 1356, in __run{normal}
-    {red}        compileflags, 1) in test.globs{normal}
+    {red}        compileflags, 1)... test.globs...{normal}
     {red}      File "<doctest e.txt[1]>", line 1, in ?{normal}
     {red}        f(){normal}
     {red}      File "<doctest e.txt[0]>", line 2, in f{normal}

Modified: zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-progress.txt
===================================================================
--- zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-progress.txt	2009-12-14 13:53:08 UTC (rev 106486)
+++ zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-progress.txt	2009-12-14 13:54:04 UTC (rev 106487)
@@ -158,6 +158,8 @@
 that, we'll provide a fake curses module:
 
     >>> class FakeCurses:
+    ...     class error(Exception):
+    ...         pass
     ...     def setupterm(self):
     ...         pass
     ...     def tigetnum(self, ignored):

Modified: zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/tests.py
===================================================================
--- zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/tests.py	2009-12-14 13:53:08 UTC (rev 106486)
+++ zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/tests.py	2009-12-14 13:54:04 UTC (rev 106487)
@@ -153,9 +153,9 @@
         #'testrunner-layers-buff.txt',
         #'testrunner-layers-ntd.txt',
         #'testrunner-layers.txt',
-        'testrunner-layers-api.txt',
+        #'testrunner-layers-api.txt',
         #'testrunner-progress.txt',
-        #'testrunner-colors.txt',
+        'testrunner-colors.txt',
         #'testrunner-simple.txt',
         #'testrunner-test-selection.txt',
         #'testrunner-verbose.txt',



More information about the Zope3-Checkins mailing list