[Zope3-checkins] SVN: zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-layers-api.txt More formatting difference in Python 3.

Lennart Regebro regebro at gmail.com
Mon Dec 14 08:38:33 EST 2009


Log message for revision 106483:
  More formatting difference in Python 3.
  

Changed:
  U   zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-layers-api.txt

-=-
Modified: zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-layers-api.txt
===================================================================
--- zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-layers-api.txt	2009-12-14 12:22:58 UTC (rev 106482)
+++ zope.testing/branches/regebro-python3-reloaded/src/zope/testing/testrunner/testrunner-layers-api.txt	2009-12-14 13:38:33 UTC (rev 106483)
@@ -113,12 +113,12 @@
 
 >>> from zope.testing.testrunner.runner import Runner
 >>> runner = Runner(options=fresh_options(), args=[], found_suites=[umbrella_suite])
->>> succeeded = runner.run()
-Running BaseLayer tests:
-  Set up BaseLayer in N.NNN seconds.
+>>> succeeded = runner.run() #doctest: +ELLIPSIS
+Running ...BaseLayer tests:
+  Set up ...BaseLayer in N.NNN seconds.
   Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
 Running zope.testing.testrunner.layer.UnitTests tests:
-  Tear down BaseLayer in N.NNN seconds.
+  Tear down ...BaseLayer in N.NNN seconds.
   Set up zope.testing.testrunner.layer.UnitTests in N.NNN seconds.
   Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
 Tearing down left over layers:
@@ -132,12 +132,12 @@
 
 >>> no_layer_suite.layer = BaseLayer
 >>> runner = Runner(options=fresh_options(), args=[], found_suites=[umbrella_suite])
->>> succeeded = runner.run()
-Running BaseLayer tests:
-  Set up BaseLayer in N.NNN seconds.
+>>> succeeded = runner.run() #doctest: +ELLIPSIS
+Running ...BaseLayer tests:
+  Set up ...BaseLayer in N.NNN seconds.
   Ran 4 tests with 0 failures and 0 errors in N.NNN seconds.
 Tearing down left over layers:
-  Tear down BaseLayer in N.NNN seconds.
+  Tear down ...BaseLayer in N.NNN seconds.
 
 Clear our logged output, as we want to inspect it shortly.
 
@@ -151,16 +151,16 @@
 
 >>> TestSpecifyingNoLayer.layer = TopLayer
 >>> runner = Runner(options=fresh_options(), args=[], found_suites=[umbrella_suite])
->>> succeeded = runner.run()
-Running BaseLayer tests:
-  Set up BaseLayer in N.NNN seconds.
+>>> succeeded = runner.run() #doctest: +ELLIPSIS
+Running ...BaseLayer tests:
+  Set up ...BaseLayer in N.NNN seconds.
   Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
-Running TopLayer tests:
-  Set up TopLayer in N.NNN seconds.
+Running ...TopLayer tests:
+  Set up ...TopLayer in N.NNN seconds.
   Ran 2 tests with 0 failures and 0 errors in N.NNN seconds.
 Tearing down left over layers:
-  Tear down TopLayer in N.NNN seconds.
-  Tear down BaseLayer in N.NNN seconds.
+  Tear down ...TopLayer in N.NNN seconds.
+  Tear down ...BaseLayer in N.NNN seconds.
 Total: 4 tests, 0 failures, 0 errors in N.NNN seconds.
 
 
@@ -170,9 +170,11 @@
 each test using that layer in the right order.
 
 >>> def report():
+...     print "Report:"
 ...     for record in log_handler.records:
 ...         print record.getMessage()
 >>> report()
+Report:
 BaseLayer.setUp
 BaseLayer.testSetUp
 TestSpecifyingBaseLayer.setUp
@@ -236,46 +238,47 @@
 >>> suite = unittest.makeSuite(DeepTest)
 >>> log_handler.clear()
 >>> runner = Runner(options=fresh_options(), args=[], found_suites=[suite])
->>> succeeded = runner.run()
-Running F tests:
-  Set up A in N.NNN seconds.
-  Set up B in N.NNN seconds.
-  Set up C in N.NNN seconds.
-  Set up D in N.NNN seconds.
-  Set up E in N.NNN seconds.
-  Set up F in N.NNN seconds.
+>>> succeeded = runner.run() #doctest: +ELLIPSIS
+Running ...F tests:
+  Set up ...A in N.NNN seconds.
+  Set up ...B in N.NNN seconds.
+  Set up ...C in N.NNN seconds.
+  Set up ...D in N.NNN seconds.
+  Set up ...E in N.NNN seconds.
+  Set up ...F in N.NNN seconds.
   Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
 Tearing down left over layers:
-  Tear down F in N.NNN seconds.
-  Tear down E in N.NNN seconds.
-  Tear down D in N.NNN seconds.
-  Tear down C in N.NNN seconds.
-  Tear down B in N.NNN seconds.
-  Tear down A in N.NNN seconds.
+  Tear down ...F in N.NNN seconds.
+  Tear down ...E in N.NNN seconds.
+  Tear down ...D in N.NNN seconds.
+  Tear down ...C in N.NNN seconds.
+  Tear down ...B in N.NNN seconds.
+  Tear down ...A in N.NNN seconds.
 
 
->>> report()
-A.setUp
-B.setUp
-C.setUp
-D.setUp
-E.setUp
-F.setUp
-A.testSetUp
-B.testSetUp
-C.testSetUp
-D.testSetUp
-E.testSetUp
-F.testSetUp
-F.testTearDown
-E.testTearDown
-D.testTearDown
-C.testTearDown
-B.testTearDown
-A.testTearDown
-F.tearDown
-E.tearDown
-D.tearDown
-C.tearDown
-B.tearDown
-A.tearDown
+>>> report() #doctest: +ELLIPSIS
+Report:
+...A.setUp
+...B.setUp
+...C.setUp
+...D.setUp
+...E.setUp
+...F.setUp
+...A.testSetUp
+...B.testSetUp
+...C.testSetUp
+...D.testSetUp
+...E.testSetUp
+...F.testSetUp
+...F.testTearDown
+...E.testTearDown
+...D.testTearDown
+...C.testTearDown
+...B.testTearDown
+...A.testTearDown
+...F.tearDown
+...E.tearDown
+...D.tearDown
+...C.tearDown
+...B.tearDown
+...A.tearDown



More information about the Zope3-Checkins mailing list