[Patches] [ python-Patches-1778410 ] removeTest() method patch for unittest.TestSuite

SourceForge.net noreply at sourceforge.net
Tue Aug 21 11:14:46 CEST 2007


Patches item #1778410, was opened at 2007-08-21 04:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1778410&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mark Edgington (edgimar)
Assigned to: Nobody/Anonymous (nobody)
Summary: removeTest() method patch for unittest.TestSuite

Initial Comment:
This is a simple patch to add a "removeTest" method to the unittest.TestSuite object.  It is called in exactly the same way the "addTest" method is called, except that it removes the provided TestCase from the suite.

This is useful if you want to add a bunch of unittests via TestLoader().loadTestsFromModule(), EXCEPT for a few specific cases, which you would like to subsequently remove.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1778410&group_id=5470


More information about the Patches mailing list