This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ehuss
Recipients
Date 2005-07-26.03:54:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The TestProgram class will find all tests in the file 
based on whether or not they are subclassed from 
TestCase.  It is not possible to prevent TestProgram 
from including tests, such as base classes.

For example, have BaseTest(unittest.TestCase) class 
that implements several test functions.  However, these 
test functions can not operate correctly on their 
own...the class must be subclassed for proper operation 
(such as TestBlah(BaseTest)).

This patch changes the "auto find" feature to ignore any 
classes that start with an underscore, allowing you to 
define base classes in the same file, but not have their 
tests run.
History
Date User Action Args
2007-08-23 15:43:36adminlinkissue1244929 messages
2007-08-23 15:43:36admincreate