0
0
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:
Claude Paroz 2021-03-10 16:09:05 +01:00 committed by GitHub
parent a6a94fb966
commit bc43ae7c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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