Denis Roussel <roussel2nis at gmail.com> added the comment: Indeed, can do assertNotEquals(len(the_list), len(set(the_list)) ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue43029> _______________________________________