diff options
| author | Claude Paroz <claude@2xlibre.net> | 2021-03-10 16:09:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-10 16:09:05 +0100 |
| commit | bc43ae7c13b903022ec1fcb4867f5f10d7f125d6 (patch) | |
| tree | 233e797730c8fad03a48ae86d3ec2c5dabbcd058 | |
| parent | a6a94fb966cc128a056f63e83213ab4aeee34004 (diff) | |
Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.
| -rw-r--r-- | django/test/testcases.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index 006e922fee..92f566b7b0 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -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 |
