Author gvanrossum
Recipients asvetlov, azsorkin, ezio.melotti, giampaolo.rodola, gvanrossum, michael.foord, pconnell, pitrou, rbcollins
Date 2015-04-28.16:53:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430239997.76.0.61092121759.issue17908@psf.upfronthosting.co.za>
In-reply-to
Content
It's trivial to add to a single test or even a single TestCase subclass, yes. The use case is more that you have a ton of tests and you suspect there's a problem due to GC. Being able to call gc.collect() after each test through the flip of a flag would be useful.

But I agree it's iffy whether this belongs in the unittest package; we could add it to the CPython run_tests.py script, or you could request this as a feature from py.test.

If someone wants to add this to run_tests.py I think this issue would be the place to review the patch.
History
Date User Action Args
2015-04-28 16:53:17gvanrossumsetrecipients: + gvanrossum, pitrou, giampaolo.rodola, rbcollins, ezio.melotti, michael.foord, asvetlov, pconnell, azsorkin
2015-04-28 16:53:17gvanrossumsetmessageid: <1430239997.76.0.61092121759.issue17908@psf.upfronthosting.co.za>
2015-04-28 16:53:17gvanrossumlinkissue17908 messages
2015-04-28 16:53:17gvanrossumcreate