[New-bugs-announce] [issue15810] assertSequenceEqual should be fired when comparing sequences
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
title: assertSequenceEqual should be fired when comparing sequences
versions: Python 2.7, Python 3.2, Python 3.3
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce