Skip to content

SwallowedExceptionError's _str__ method prints out one character per line when used with nose #48

@GoogleCodeExporter

Description

@GoogleCodeExporter
Similar to Issue 34

This fixed the problems for me:

    def __str__(self):
        if isinstance(self._previous_exceptions, basestring):
            exceptions = self._previous_exceptions
        else:
            exceptions = "\n".join(["%3d.  %s: %s" % (i, e.__class__.__name__, e)
                                    for i, e in enumerate(self._previous_exceptions)])
        return "Previous exceptions thrown:\n%s" % (exceptions,)

Original issue reported on code.google.com by [email protected] on 28 Jul 2012 at 2:26

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions