#23746: Allow assertNumQueries to clear caches before it runs
-----------------------------------+------------------------------------
     Reporter:  wrwrwr             |                    Owner:  nobody
         Type:  New feature        |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  1                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by timgraham):

 I think it would be interesting to see a benchmark of adding a similar
 signal in `SimpleTestCase._pre_setup()` to clear the sites and
 contenttypes caches before each test. How much would that increase the
 runtime of the test suite? If we went with that approach, we probably
 wouldn't need the `pre_capture_queries` signal.

--
Ticket URL: <https://code.djangoproject.com/ticket/23746#comment:6>
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/064.b3557dfd88a5ff9a60f21dccb486cf9c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to