#27938: Warning in tests: UserWarning: Limit for query logging exceeded, only 
the
last 9000 queries will be returned.
---------------------------------------------+------------------------
               Reporter:  Pavel Patrin       |          Owner:  nobody
                   Type:  Uncategorized      |         Status:  new
              Component:  Testing framework  |        Version:  1.10
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 I got a warning in test enviromnent.

 `django/db/backends/base/base.py:133: UserWarning: Limit for query logging
 exceeded, only the last 9000 queries will be returned.`

 After it assertion `assertNumQueries()` always fails with '0 != XXX
 queries'.

 As a hotfix I close all opened connections and do `del
 connections[conname]` in `TestCase.tearDownClass()`.

--
Ticket URL: <https://code.djangoproject.com/ticket/27938>
Django <https://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 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.54439b342abda5743ac8fbb327ac3875%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to