[New-bugs-announce] [issue15810] assertSequenceEqual should be fired when comparing sequences
Florent Xicluna
report at bugs.python.org
Wed Aug 29 15:18:19 CEST 2012
New submission from Florent Xicluna:
When writing unittest, I noticed that I need to uses assertSequenceEqual explicitly when comparing sequences of different kinds.
If I only use the plain assertEqual, it does not generate pretty diffs.
On second thought, I think it could be fixed in unittest to use assertSequenceEqual when isinstance(arg, (tuple, list)) or isinstance(arg, collections.Sequence) is True.
----------
components: Library (Lib), Tests
messages: 169372
nosy: flox
priority: normal
severity: normal
status: open
title: assertSequenceEqual should be fired when comparing sequences
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15810>
_______________________________________
More information about the New-bugs-announce
mailing list