Re: Avoid unbounded memory consumption when running `manage.py test`

2013-07-26 Thread Matt McClure
On Thursday, July 18, 2013 7:30:55 PM UTC-7, Matt McClure wrote: > 1. TestSuite. Here's a minimal hack to release the reference that > TestSuite would otherwise hold after a TestCase runs until the remainder of > the suite had finished. > > +self._tests.remove(test) > That turns ou

Re: Avoid unbounded memory consumption when running `manage.py test`

2013-07-18 Thread Matt McClure
On Thursday, July 18, 2013 6:12:16 PM UTC-4, Matt McClure wrote: > AFAICT, TestResult holds references to each TestCase instance. I can start to answer my own question. But I'm interested to know if others run into similar problems and how you solve them. It looks like there are at least two p

Avoid unbounded memory consumption when running `manage.py test`

2013-07-18 Thread Matt McClure
What's a good way to avoid unbounded memory consumption when running manage.py test? AFAICT, TestResult holds references to each TestCase instance. So attributes of my TestCase subclasses don't get freed by the garbage collector until the last reference to TestResult disappears, w