diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2009-03-31 16:54:10 +0000 |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2009-03-31 16:54:10 +0000 |
commit | 2839985c7e717c103f3281abef360ff781b3ddb8 (patch) | |
tree | f4d31e53142ed01ebda1b5fe362dc4b0e557d020 /Lib/test/test_struct.py | |
parent | c2784229b858c1cb74920681846a62797a71c244 (diff) | |
download | cpython-git-2839985c7e717c103f3281abef360ff781b3ddb8.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r-- | Lib/test/test_struct.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 6e35db85dc..1cf3484fa5 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -227,6 +227,7 @@ class StructTest(unittest.TestCase): BUGGY_RANGE_CHECK = "bBhHiIlL" def __init__(self, formatpair, bytesize): + super(IntTester, self).__init__(methodName='test_one') self.assertEqual(len(formatpair), 2) self.formatpair = formatpair for direction in "<>!=": |