1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #21462 -- Made assertNumQueries print executed queries on failure.

This commit is contained in:
Dominic Rodger
2013-12-08 23:07:04 +00:00
committed by Simon Charette
parent 75924cfa6d
commit 5cd6477fd6
3 changed files with 10 additions and 2 deletions

View File

@@ -713,6 +713,9 @@ Miscellaneous
``select_related('foo').select_related('bar')``. Previously the latter would
have been equivalent to ``select_related('bar')``.
* :meth:`~django.test.TransactionTestCase.assertNumQueries` now prints
out the list of executed queries if the assertion fails.
Features deprecated in 1.7
==========================