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 michael.foord
Recipients anacrolix, eric.araujo, michael.foord, r.david.murray
Date 2012-03-29.10:01:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
One way to exclude base classes from being loaded as tests is to have the base class *not* inherit from TestCase (just from object) - and use it as a mixin class for the actual TestCases. 

This isn't particularly elegant (but works fine). A better way of supporting this in unittest would be a reasonable request (a "not_a_test" class decorator or similar perhaps).
Date User Action Args
2012-03-29 10:01:23michael.foordsetrecipients: + michael.foord, eric.araujo, r.david.murray, anacrolix
2012-03-29 10:01:23michael.foordsetmessageid: <>
2012-03-29 10:01:22michael.foordlinkissue14408 messages
2012-03-29 10:01:22michael.foordcreate