Refs #31235 -- Made assertQuerysetEqual() not call repr() on a queryset when compared to string values.

Per deprecation timeline.
This commit is contained in:
Mariusz Felisiak 2021-09-16 09:12:56 +02:00
parent 75d6c4ae6d
commit e2be307b3a
4 changed files with 5 additions and 55 deletions

View file

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