[issue36230] Please sort assertSetEqual's output
Rémi Lapeyre
report at bugs.python.org
Fri Mar 8 03:55:45 EST 2019
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
@rhettinger
> It's possible to have non-sortable elements in the set, so you'll either need to sort on the repr of the elements or have a fallback
Yes, it is the repr that is used in the loop and that what's the sorting needs to be done against.
@Windson Yang
> we should compare their repr() without sort() like now.
I'm not sure to understand, can you provide more information about what you are thinking of?
Is there a reason to add 2.7, 3.4, 3.5, 3.6 and 3.7 to versions affected ?
As far as I can tell, this is a new feature and should only go in 3.8.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36230>
_______________________________________
More information about the Python-bugs-list
mailing list