Message157018
| 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:23 | michael.foord | set | recipients:
+ michael.foord, eric.araujo, r.david.murray, anacrolix |
| 2012年03月29日 10:01:23 | michael.foord | set | messageid: <1333015283.0.0.224273776531.issue14408@psf.upfronthosting.co.za> |
| 2012年03月29日 10:01:22 | michael.foord | link | issue14408 messages |
| 2012年03月29日 10:01:22 | michael.foord | create |
|