Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 19, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 kunalpar...@gmail.com on 28 Jul 2012 at 2:26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant