From e2be307b3ab6ebf339b3a765fe64967c9602266f Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 16 Sep 2021 09:12:56 +0200 Subject: Refs #31235 -- Made assertQuerysetEqual() not call repr() on a queryset when compared to string values. Per deprecation timeline. --- docs/releases/4.1.txt | 3 +++ docs/topics/testing/tools.txt | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index 8fbcbf145b..8cb4297d0e 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -257,3 +257,6 @@ to remove usage of these features. ``django.core.validators.EmailValidator`` are removed. * The ``default_app_config`` application configuration variable is removed. + +* ``TransactionTestCase.assertQuerysetEqual()`` no longer calls ``repr()`` on a + queryset when compared to string values. diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index a99ee77cb0..99aff9c116 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1700,13 +1700,6 @@ your test suite. Output in case of error can be customized with the ``msg`` argument. - .. deprecated:: 3.2 - - If ``transform`` is not provided and ``values`` is a list of strings, - it's compared to a list produced by applying ``repr()`` to each member - of ``qs``. This behavior is deprecated and will be removed in Django - 4.1. If you need it, explicitly set ``transform`` to ``repr``. - .. method:: TransactionTestCase.assertNumQueries(num, func, *args, **kwargs) Asserts that when ``func`` is called with ``*args`` and ``**kwargs`` that -- cgit v1.3