homepage

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 <1333015283.0.0.224273776531.issue14408@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
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: <1333015283.0.0.224273776531.issue14408@psf.upfronthosting.co.za>
2012年03月29日 10:01:22michael.foordlinkissue14408 messages
2012年03月29日 10:01:22michael.foordcreate

AltStyle によって変換されたページ (->オリジナル) /