On Sun, Sep 22, 2013 at 3:18 PM, Aymeric Augustin <
[email protected]> wrote:

> On 22 sept. 2013, at 20:38, Shai Berger <[email protected]> wrote:
> The extra queries for the savepoints will break all tests that use
> assertNumQueries
> — well, all except assertNumQueries(0). How do you propose to deal with
> that.


When changes are made to Django in such a way that existing tests no longer
accurately test the expected behavior, I propose that the tests are fixed.

I'd argue that many of the tests that use assertNumQueries are poorly
written and should be viewed as already broken. This opinion is based upon
my efforts of making django-mssql pass the test suite.  assertNumQueries is
backend specific, but often is not guarded with a vendor or DatabaseFeature
check. The exception being tests that ensure no queries are executed
because that behavior is not backend specific

When the savepoint changes break the fragile tests, that will be a good
thing because they will need to be rewritten (hopefully with proper guards).

Regards,
Michael Manfre

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to