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

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 l

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, which isn't un

Re: error in your SQL syntax near '(DATE_FORMAT... on adding date_hierarchy = 'pub_date'

2006-06-12 Thread Matt McClure
I received in a private email: > Hello Matthew, > > I'm seeing the exact same "date_hierarchy" problem and was wondering > if you received a solution offline and/or figured it out. > > Seems like the problem is somewhere among my Python 2.3.3, MySQLdb > 1.2.1 and the MySQL 3.23.53, 'cause I've got