[New-bugs-announce] [issue7837] assertSameElements doesn't filter enough py3k warnings

Ezio Melotti report at bugs.python.org
Tue Feb 2 11:32:56 CET 2010


New submission from Ezio Melotti <ezio.melotti at 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 <report at bugs.python.org>
<http://bugs.python.org/issue7837>
_______________________________________


More information about the New-bugs-announce mailing list