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

Lennart Regebro <[email protected]>
Newsgroups gmane.comp.web.zope.zope3.cvs
Message-ID <20091214135405.2778F94182__41102.9596267783$1260798855$gmane$org@cvs.zope.org>
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',
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.