]> granicus.if.org Git - python/commit
The unittest.TestCase.assertEqual() now displays the differences in lists,
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 31 Mar 2009 16:54:10 +0000 (16:54 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 31 Mar 2009 16:54:10 +0000 (16:54 +0000)
commit2839985c7e717c103f3281abef360ff781b3ddb8
treef4d31e53142ed01ebda1b5fe362dc4b0e557d020
parentc2784229b858c1cb74920681846a62797a71c244
The unittest.TestCase.assertEqual() now displays the differences in lists,
tuples, dicts and sets on failure.

Many new handy type and comparison specific assert* methods have been added
that fail with error messages actually useful for debugging.  Contributed in
by Google and completed with help from mfoord and GvR at PyCon 2009 sprints.

Discussion lives in http://bugs.python.org/issue2578.
Doc/library/unittest.rst
Lib/test/test_gc.py
Lib/test/test_struct.py
Lib/test/test_unittest.py
Lib/unittest.py
Misc/NEWS