[3.2.x] Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.

Backport of bc43ae7c13 from main
This commit is contained in:
Claude Paroz 2021-03-10 16:09:05 +01:00 committed by Mariusz Felisiak
parent 450330952f
commit 104d6172e8
1 changed files with 1 additions and 0 deletions

View File

@ -1056,6 +1056,7 @@ class TransactionTestCase(SimpleTestCase):
"on a queryset when compared to string values. Set an "
"explicit 'transform' to silence this warning.",
category=RemovedInDjango41Warning,
stacklevel=2,
)
transform = repr
items = qs