[issue43029] unittest: Add assertUniqeIn

2021-01-29 Thread Denis Roussel
Denis Roussel added the comment: Of course. Wanted a shortcut. Can close it if you want. -- ___ Python tracker ___ ___

[issue43029] unittest: Add assertUniqeIn

2021-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think you meant assertEqual(len(alist), len(set(alist))). I agree with others. -- nosy: +terry.reedy resolution: -> rejected stage: patch review -> resolved status: open -> closed type: -> enhancement versions: +Python 3.10

[issue43029] unittest: Add assertUniqeIn

2021-01-29 Thread Denis Roussel
Denis Roussel added the comment: Indeed, can do assertNotEquals(len(the_list), len(set(the_list)) -- ___ Python tracker ___ ___

[issue43029] unittest: Add assertUniqeIn

2021-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks pretty niche. I do not remember a single case in which such method would help. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue43029] unittest: Add assertUniqeIn

2021-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 on this one because the algorithm is quadratic, the name is opaque, and because the common case can already be clearly expressed with sets. -- nosy: +rhettinger ___ Python tracker

[issue43029] unittest: Add assertUniqeIn

2021-01-26 Thread Denis Roussel
Change by Denis Roussel : -- keywords: +patch pull_requests: +23154 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24336 ___ Python tracker ___

[issue43029] unittest: Add assertUniqeIn

2021-01-26 Thread Denis Roussel
New submission from Denis Roussel : Allows to test uniqueness of members of a list -- components: Tests messages: 385700 nosy: rousseldenis priority: normal severity: normal status: open title: unittest: Add assertUniqeIn ___ Python tracker