mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[3.2.x] Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.
Backport of bc43ae7c13b903022ec1fcb4867f5f10d7f125d6 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…
x
Reference in New Issue
Block a user