New submission from Ezio Melotti <ezio.melo...@gmail.com>: In assertSameElements ( Lib/unittest/case.py ) there's a filter for py3k warning that checks for warning about dict comparisons but not for comparisons of unequal types. If python is run with the -3 flag and a non-hashable sequence with elements of different types is passed to assertSameElements the warning is not silenced. There's also a third warning that might be raised if among the elements there's a builtin function or method.
Patch attached. ---------- components: Library (Lib), Tests files: issue7837.patch keywords: easy, needs review, patch, patch messages: 98726 nosy: ezio.melotti, flox, michael.foord priority: normal severity: normal stage: patch review status: open title: assertSameElements doesn't filter enough py3k warnings type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file16097/issue7837.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7837> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com