[Zope3-checkins] SVN: zope.testing/trunk/ - Fix testrunner-leaks.txt to use the run_internal helper, so that

Sidnei da Silva sidnei.da.silva at gmail.com
Fri Mar 12 09:38:04 EST 2010


Log message for revision 109926:
  - Fix testrunner-leaks.txt to use the run_internal helper, so that
    sys.exit() isn't triggered during the test run.
  
  

Changed:
  U   zope.testing/trunk/CHANGES.txt
  U   zope.testing/trunk/src/zope/testing/testrunner/testrunner-leaks.txt

-=-
Modified: zope.testing/trunk/CHANGES.txt
===================================================================
--- zope.testing/trunk/CHANGES.txt	2010-03-12 13:01:18 UTC (rev 109925)
+++ zope.testing/trunk/CHANGES.txt	2010-03-12 14:38:03 UTC (rev 109926)
@@ -7,6 +7,8 @@
 - Modified the testrunner to use the standard Python doctest module instead of
   the deprecated zope.testing.doctest.
 
+- Fix testrunner-leaks.txt to use the run_internal helper, so that
+  sys.exit() isn't triggered during the test run.
 
 3.8.6 (2009-12-23)
 ==================

Modified: zope.testing/trunk/src/zope/testing/testrunner/testrunner-leaks.txt
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/testrunner-leaks.txt	2010-03-12 13:01:18 UTC (rev 109925)
+++ zope.testing/trunk/src/zope/testing/testrunner/testrunner-leaks.txt	2010-03-12 14:38:03 UTC (rev 109926)
@@ -16,7 +16,7 @@
     >>> from zope.testing import testrunner
     
     >>> sys.argv = 'test --layer Layer11$ --layer Layer12$ -N4 -r'.split()
-    >>> _ = testrunner.run(defaults)
+    >>> _ = testrunner.run_internal(defaults)
     Running samplelayers.Layer11 tests:
       Set up samplelayers.Layer1 in 0.000 seconds.
       Set up samplelayers.Layer11 in 0.000 seconds.
@@ -60,7 +60,7 @@
 Let's look at an example test that leaks:
 
     >>> sys.argv = 'test --tests-pattern leak -N4 -r'.split()
-    >>> _ = testrunner.run(defaults)
+    >>> _ = testrunner.run_internal(defaults)
     Running zope.testing.testrunner.layer.UnitTests tests:...
     Iteration 1
       Ran 1 tests with 0 failures and 0 errors in 0.000 seconds.
@@ -81,7 +81,7 @@
 type (or class):
 
     >>> sys.argv = 'test --tests-pattern leak -N5 -r -v'.split()
-    >>> _ = testrunner.run(defaults)
+    >>> _ = testrunner.run_internal(defaults)
     Running tests at level 1
     Running zope.testing.testrunner.layer.UnitTests tests:...
     Iteration 1



More information about the Zope3-Checkins mailing list