#27539: assertNumQueries fails if debug cursor wrapper fills -----------------------------------+------------------------------------- Reporter: Malcolm Box | Owner: reficul31 Type: Bug | Status: assigned Component: Testing framework | Version: 1.10 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 1 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -----------------------------------+-------------------------------------
Comment (by Tim Graham): This isn't the approach that Aymeric suggested, "The test framework should clear `connection.queries` between each test." I think the place to do that might be `TransactionTestCase._pre_setup()`. Also, the test should temporarily change `queries_limit` to a small value so that the test doesn't have to make 9,000 queries. I can't think of any required documentation updates right now. There isn't a need to change the ticket's version -- that indicates when the ticket was reported. -- Ticket URL: <https://code.djangoproject.com/ticket/27539#comment:11> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.bdf27fbd2338ad9aa6a91f7e8656b91d%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.