﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22320	assertNumQueries should capture call stacks	Malcolm Box	nobody	"When an assertNumQueries assertion fails there are two things that are very helpful in diagnosing the issue: the SQL calls generated, and what caused them. assertNumQueries does a good job with the former, but provides no help with the latter. 

If the CursorDebugWrapper kept track of the traceback for each query, it would be simple to see what had caused any unexpected queries.

"	New feature	closed	Testing framework	dev	Normal	duplicate			Unreviewed	1	0	0	0	0	0
