summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/result.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-05-02 21:00:22 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-05-02 21:00:22 (GMT)
commitd23ea06175c62b166d8a6c7a2efc090bf7ead779 (patch)
tree652a580c2d7305e34de781748e8df83a16ca39bc /Lib/unittest/result.py
parent6e20a1bdf082dc20586c291993a32b58b503744e (diff)
downloadcpython-d23ea06175c62b166d8a6c7a2efc090bf7ead779.zip
cpython-d23ea06175c62b166d8a6c7a2efc090bf7ead779.tar.gz
cpython-d23ea06175c62b166d8a6c7a2efc090bf7ead779.tar.bz2
Merged revisions 80708 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80708 | michael.foord | 2010-05-02 21:39:42 +0100 (Sun, 02 May 2010) | 1 line Fix unittest tests to not abuse traceback.format_exception ........
Diffstat (limited to 'Lib/unittest/result.py')
-rw-r--r--Lib/unittest/result.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/unittest/result.py b/Lib/unittest/result.py
index 92b1f91..1dbd04c 100644
--- a/Lib/unittest/result.py
+++ b/Lib/unittest/result.py
@@ -153,9 +153,7 @@ class TestResult(object):
length = self._count_relevant_tb_levels(tb)
msgLines = traceback.format_exception(exctype, value, tb, length)
else:
- chain = exctype is not None
- msgLines = traceback.format_exception(exctype, value, tb,
- chain=chain)
+ msgLines = traceback.format_exception(exctype, value, tb)
if self.buffer:
output = sys.stdout.getvalue()