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.
This commit is contained in:
Tim Peters 2001-09-08 03:37:56 +00:00
parent b07352e8b7
commit 2d84f2c95a
1 changed files with 1 additions and 4 deletions

View File

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