[Zope3-checkins] SVN: zope.testing/trunk/ LP #498162: Added a ``--pdb`` alias for the ``-D`` testrunner option.

Tres Seaver tseaver at palladion.com
Sat Apr 10 21:15:16 EDT 2010


Log message for revision 110729:
  LP #498162:  Added a ``--pdb`` alias for the ``-D`` testrunner option.
  
  That option can also be invoked as ``--post-mortem``.
  

Changed:
  U   zope.testing/trunk/CHANGES.txt
  U   zope.testing/trunk/src/zope/testing/testrunner/options.py

-=-
Modified: zope.testing/trunk/CHANGES.txt
===================================================================
--- zope.testing/trunk/CHANGES.txt	2010-04-11 01:04:40 UTC (rev 110728)
+++ zope.testing/trunk/CHANGES.txt	2010-04-11 01:15:16 UTC (rev 110729)
@@ -4,6 +4,9 @@
 3.9.4 (unreleased)
 ==================
 
+- LP #498162:  Added a ``--pdb`` alias for the existing ``--post-mortem``
+  / ``-D`` option to the testrunner.
+
 - LP #547023:  Added a ``--version`` option to the testrunner.
 
 - Added tests for LP #144569 and #69988.

Modified: zope.testing/trunk/src/zope/testing/testrunner/options.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/options.py	2010-04-11 01:04:40 UTC (rev 110728)
+++ zope.testing/trunk/src/zope/testing/testrunner/options.py	2010-04-11 01:15:16 UTC (rev 110729)
@@ -255,7 +255,7 @@
 
 
 analysis.add_option(
-    '--post-mortem', '-D', action="store_true", dest='post_mortem',
+    '--post-mortem', '--pdb', '-D', action="store_true", dest='post_mortem',
     help="Enable post-mortem debugging of test failures"
     )
 



More information about the Zope3-Checkins mailing list