1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.

This commit is contained in:
Claude Paroz
2021-03-10 16:09:05 +01:00
committed by GitHub
parent a6a94fb966
commit bc43ae7c13

View File

@@ -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