def __str__(self):
    flattened_failures = self.GetFlattenedFailures()
    if len(flattened_failures) == 1:
      return str(flattened_failures[0])
    assert len(flattened_failures) > 0
    return (
        'Multiple failures:\n' +
        '\n\n'.join(str(f) for f in flattened_failures))
dataset/ETHPy150Open google/vroom/vroom/test.py/Failures.__str__/original