#14774: assertNumQueries is buggy with views and the test client if used more 
than
once in a test
------------------------------------+---------------------------------------
          Reporter:  lukeplant      |         Owner:  nobody
            Status:  new            |     Milestone:        
         Component:  Uncategorized  |       Version:  1.2   
        Resolution:                 |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  0     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by Alex):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Almost certainly caused by the ``reset_queries`` signal:
 http://code.djangoproject.com/browser/django/trunk/django/db/__init__.py#L87
 .  I'll think on what can be done about this, as for obvious reasons the
 context manager/function records the number of queries before it calls the
 function, and then clears it.  Perhaps this function should respect
 ``use_debug_cursor`` or something.  Again, needs thoughts.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14774#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to