Message87298
| Author |
michael.foord |
| Recipients |
georg.brandl, michael.foord |
| Date |
2009年05月05日.23:00:07 |
| SpamBayes Score |
4.633127e-12 |
| Marked as misclassified |
No |
| Message-id |
<1241564409.11.0.779371397916.issue5846@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
So it turns out that unittest.makeSuite is used about 100 times
throughout the standard library tests.
More than half the time it can be replaced with
unittest.TestLoader().loadTestsFromTestCase(...)
Some of the other times a loader needs to be constructed and then a
testMethodPrefix of 'Check' set (yuck!).
I'm about halfway through a patch that does this. Think it is worth
continuing or shall I drop it. I don't mind doing it so long as
*someone* thinks it is worthwhile... :-)
(I haven't yet checked for getTestCaseNames but I imagine there will be
a bunch of these to fix as well.)
Another possibility is to move the functions into test_support
(deprecating first) where at least they are out of unittest. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年05月05日 23:00:09 | michael.foord | set | recipients:
+ michael.foord, georg.brandl |
| 2009年05月05日 23:00:09 | michael.foord | set | messageid: <1241564409.11.0.779371397916.issue5846@psf.upfronthosting.co.za> |
| 2009年05月05日 23:00:08 | michael.foord | link | issue5846 messages |
| 2009年05月05日 23:00:07 | michael.foord | create |
|