Called at the end of a subtest. 'err' is None if the subtest ended successfully, otherwise it's a tuple of values as returned by sys.exc_info().
unittest/TestResult.addSubTest
TestResult.addSubTest