Fix bug in TestResult.addSubTest()

This commit is contained in:
Antoine Pitrou 2013-03-29 17:55:24 +01:00
parent e612c1e29f
commit 22e162f462
2 changed files with 35 additions and 1 deletions

View file

@ -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):