mirror of https://github.com/django/django.git
[3.2.x] Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.
Backport of bc43ae7c13
from main
This commit is contained in:
parent
450330952f
commit
104d6172e8
|
@ -1056,6 +1056,7 @@ class TransactionTestCase(SimpleTestCase):
|
||||||
"on a queryset when compared to string values. Set an "
|
"on a queryset when compared to string values. Set an "
|
||||||
"explicit 'transform' to silence this warning.",
|
"explicit 'transform' to silence this warning.",
|
||||||
category=RemovedInDjango41Warning,
|
category=RemovedInDjango41Warning,
|
||||||
|
stacklevel=2,
|
||||||
)
|
)
|
||||||
transform = repr
|
transform = repr
|
||||||
items = qs
|
items = qs
|
||||||
|
|
Loading…
Reference in New Issue