Re: [Django] #33609: Use assertCountEqual() in assertQuerysetEqual(). (was: Use assertCountEqual in assertQuerysetEqual)

5 views
Skip to first unread message

Django

unread,
Mar 30, 2022, 11:14:07 AM3/30/22
to django-...@googlegroups.com
#33609: Use assertCountEqual() in assertQuerysetEqual().
-------------------------------------+-------------------------------------
Reporter: David | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Testing framework | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: queryseteuql | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => wontfix


Comment:

This change would be backward incompatible because an output is completely
different. Moreover `assertCountEqual()` doesn't support `maxDiff` (see
#32469). I don't think it's worth changing.

--
Ticket URL: <https://code.djangoproject.com/ticket/33609#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages