summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/result.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/unittest/result.py')
-rw-r--r--Lib/unittest/result.py2
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):