mirror of
https://github.com/django/django.git
synced 2025-04-01 12:06:43 +00:00
Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.
This commit is contained in:
parent
a6a94fb966
commit
bc43ae7c13
@ -1081,6 +1081,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