Re: [Python-Dev] Test cases not garbage collected after run

2011-04-21 Thread Michael Foord
On 15/04/2011 17:49, Martin (gzlist) wrote: On 14/04/2011, Michael Foordfuzzy...@voidspace.org.uk wrote: I'd be interested to know what is keeping the tests alive even when the test suite isn't. As far as I know there is nothing else in unittest that would do that. The main cause is some

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-15 Thread Martin (gzlist)
On 14/04/2011, Michael Foord fuzzy...@voidspace.org.uk wrote: I'd be interested to know what is keeping the tests alive even when the test suite isn't. As far as I know there is nothing else in unittest that would do that. The main cause is some handy code for collecting and filtering tests by

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-14 Thread John Arbash Meinel
-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

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-14 Thread Michael Foord
On 14/04/2011 00:23, Martin (gzlist) wrote: On 07/04/2011, Michael Foordfuzzy...@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

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-13 Thread Martin (gzlist)
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

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-08 Thread Michael Foord
On 08/04/2011 02:10, Robert Collins wrote: On Fri, Apr 8, 2011 at 8:12 AM, Michael Foordfuzzy...@voidspace.org.uk wrote: On 07/04/2011 20:18, Robert Collins wrote: On Fri, Apr 8, 2011 at 4:49 AM, Michael Foordfuzzy...@voidspace.org.uk wrote: You mean that the test run keeps the test

[Python-Dev] Test cases not garbage collected after run

2011-04-07 Thread Fabio Zadrozny
I actually created a bug entry for this (http://bugs.python.org/issue11798) and just later it occurred that I should've asked in the list first :) So, here's the text for opinions: Right now, when doing a test case, one must clear all the variables created in the test class, and I believe this

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-07 Thread Michael Foord
On 07/04/2011 17:18, Fabio Zadrozny wrote: I actually created a bug entry for this (http://bugs.python.org/issue11798) and just later it occurred that I should've asked in the list first :) So, here's the text for opinions: Right now, when doing a test case, one must clear all the variables

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-07 Thread Robert Collins
On Fri, Apr 8, 2011 at 4:49 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: You mean that the test run keeps the test instances alive for the whole test run so instance attributes are also kept alive. How would you solve this - by having calling a TestSuite (which is how a test run is

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-07 Thread Michael Foord
On 07/04/2011 20:18, Robert Collins wrote: On Fri, Apr 8, 2011 at 4:49 AM, Michael Foordfuzzy...@voidspace.org.uk wrote: You mean that the test run keeps the test instances alive for the whole test run so instance attributes are also kept alive. How would you solve this - by having calling a

Re: [Python-Dev] Test cases not garbage collected after run

2011-04-07 Thread Robert Collins
On Fri, Apr 8, 2011 at 8:12 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: On 07/04/2011 20:18, Robert Collins wrote: On Fri, Apr 8, 2011 at 4:49 AM, Michael Foordfuzzy...@voidspace.org.uk  wrote: You mean that the test run keeps the test instances alive for the whole test run so