From 2d84f2c95a59b815ef6864805bb6b04b79d0e106 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 8 Sep 2001 03:37:56 +0000 Subject: 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. --- Lib/test/test_support.py | 5 +---- 1 file changed, 1 insertion(+), 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) -- cgit v0.12