On Fri, May 4, 2012 at 4:46 AM, Andreas Pelme <[email protected]> wrote: > > That's a good question. Anyone who wrote to original > TransactionTestCase/reordering implementation that wants to chime in? :-)
I worked on the test speedups that introduced TransactionTestCase and I added the re-ordering, but the behavior of database flush being done at the beginning of a test existed before that work. The conversation that led to addition of the reordering is here: http://groups.google.com/group/django-developers/browse_thread/thread/1e4f4c840b180895/ doctests (which we have no more?) play a prominent role in that discussion. While we have gotten rid of doctests in Django's own suite, we still support apps which may use doctests in their code, so anything we do to change when the DB is cleared needs to take that into account. On the table then was the idea of adding cleanup after doctests, possibly that would need to be re-considered if you want to move the database clearing to the end of everything rather than the beginning of TransactionTestCase. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
