mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01: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 "
|
||||
"explicit 'transform' to silence this warning.",
|
||||
category=RemovedInDjango41Warning,
|
||||
stacklevel=2,
|
||||
)
|
||||
transform = repr
|
||||
items = qs
|
||||
|
Loading…
Reference in New Issue
Block a user