diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-03-29 16:55:24 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-03-29 16:55:24 (GMT) |
commit | 22e162f462b7f883b65d13c3462325c4fd163dc0 (patch) | |
tree | 4ce53a1f0e01910128c8df18db12779204ac6861 /Lib/unittest/result.py | |
parent | e612c1e29f69c6704d8382cbfeaa8358a5e7fb3b (diff) | |
download | cpython-22e162f462b7f883b65d13c3462325c4fd163dc0.zip cpython-22e162f462b7f883b65d13c3462325c4fd163dc0.tar.gz cpython-22e162f462b7f883b65d13c3462325c4fd163dc0.tar.bz2 |
Fix bug in TestResult.addSubTest()
Diffstat (limited to 'Lib/unittest/result.py')
-rw-r--r-- | Lib/unittest/result.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/result.py b/Lib/unittest/result.py index eec4f21..f3f4b67 100644 --- a/Lib/unittest/result.py +++ b/Lib/unittest/result.py @@ -134,7 +134,7 @@ class TestResult(object): errors = self.failures else: errors = self.errors - errors.append((test, self._exc_info_to_string(err, test))) + errors.append((subtest, self._exc_info_to_string(err, test))) self._mirrorOutput = True def addSuccess(self, test): |