summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_support.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-08 03:37:56 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-08 03:37:56 (GMT)
commit2d84f2c95a59b815ef6864805bb6b04b79d0e106 (patch)
tree4d12ecda2d92d52c6c1e87c01798477b3d49b4a5 /Lib/test/test_support.py
parentb07352e8b7c4e48527fbe0b57aae295dd15c1bfd (diff)
downloadcpython-2d84f2c95a59b815ef6864805bb6b04b79d0e106.zip
cpython-2d84f2c95a59b815ef6864805bb6b04b79d0e106.tar.gz
cpython-2d84f2c95a59b815ef6864805bb6b04b79d0e106.tar.bz2
It appears that unittest was changed to stop hoarding raw exception data,
saving instead a traceback string, but test_support's run_unittest was still peeking into unittest internals and trying to pick apart unittest's errors and failures vectors as if they contained exc_info() tuples instead of strings. Whatever, when a unittest-based test failed, test_support blew up. I'm not sure this is the right way to fix it; it simply gets me unstuck.
Diffstat (limited to 'Lib/test/test_support.py')
-rw-r--r--Lib/test/test_support.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index 5391f68..0e87131 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -155,7 +155,4 @@ def run_unittest(testclass):
else:
raise TestFailed("errors occurred in %s.%s"
% (testclass.__module__, testclass.__name__))
- if err[0] is AssertionError:
- raise TestFailed(str(err[1]))
- else:
- raise TestFailed("%s: %s" % err[:2])
+ raise TestFailed(err)