This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, flox, michael.foord
Date 2010-02-02.10:32:53
SpamBayes Score 1.5816959e-11
Marked as misclassified No
Message-id <1265106776.19.0.232903733304.issue7837@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-02-02 10:32:56ezio.melottisetrecipients: + ezio.melotti, michael.foord, flox
2010-02-02 10:32:56ezio.melottisetmessageid: <1265106776.19.0.232903733304.issue7837@psf.upfronthosting.co.za>
2010-02-02 10:32:54ezio.melottilinkissue7837 messages
2010-02-02 10:32:53ezio.melotticreate