diff options
| author | Claude Paroz <claude@2xlibre.net> | 2021-03-10 16:09:05 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-03-10 16:13:03 +0100 |
| commit | 104d6172e85101658147a568de86bb678fa1c019 (patch) | |
| tree | 89fdf0bde01ca1f92716370f9d368e7773006e1c | |
| parent | 450330952f4f0171c6755ca632a91664993f0385 (diff) | |
[3.2.x] Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2.
Backport of bc43ae7c13b903022ec1fcb4867f5f10d7f125d6 from main
| -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 47c3377151..27196cdc62 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -1056,6 +1056,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 |
