-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/14/2011 1:23 AM, Martin (gzlist) wrote:
> On 07/04/2011, Michael Foord <fuzzy...@voidspace.org.uk> wrote:
>> On 07/04/2011 20:18, Robert Collins wrote:
>>>
>>> Testtools did something to address this problem, but I forget what it
>>> was offhand.
> 
> Some issues were worked around, but I don't remember any comprehensive 
> solution.
> 
>> The proposed "fix" is to make test suite runs destructive, either
>> replacing TestCase instances with None or pop'ing tests after they are
>> run (the latter being what twisted Trial does). run-in-a-loop helpers
>> could still repeatedly iterate over suites, just not call the suite.
> 
> Just pop-ing is unlikely to be sufficient in practice. The Bazaar test
> suite (which uses testtools nowadays) has code that pops during the
> run, but still keeps every case alive for the duration. That trebles
> the runtime on my memory-constrained box unless I add a hack that
> clears the __dict__ of every testcase after it's run.
> 
> Martin

I think we would be ok with merging the __dict__ clearing as long as it
doesn't do it for failed tests, etc.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2m1oAACgkQJdeBCYSNAAPHmwCfQSNW8Pk7V7qx6Jl/gYthFVxE
p0cAn0XRvRR+Rqb+yiJnaVEzUOBdwOpf
=19YJ
-----END PGP SIGNATURE-----
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to