Message188436
| Author |
pitrou |
| Recipients |
ezio.melotti, giampaolo.rodola, gvanrossum, michael.foord, pitrou |
| Date |
2013年05月05日.11:29:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1367753395.25.0.838100069237.issue17908@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> OTOH it's a useful option to have in case you're tracking down
> something that happens (or doesn't happen) when an object is collected
IMO this is a good reason to implement your specific tearDown method (or call addCleanup if you prefer), possibly in a shared base class.
I don't think this is a good candidate for a command-line option, it's too specialized and it's also not something which should be enabled blindly. In other words, each test case should know whether it needs a collection or not. |
|