[issue25669] unittest.assertEqual() on un-equal types inheriting from collections.Mapping

Nathan Herring report at bugs.python.org
Thu Nov 19 10:12:01 EST 2015


Nathan Herring added the comment:

FWIW, it's also pretty easy to write

self.assertEqual({'key': 'value'}, dict(foo))

and get the right behavior, but it'd be nice if it was done automagically by type checking.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25669>
_______________________________________


More information about the Python-bugs-list mailing list