nose-ipdb icon indicating copy to clipboard operation
nose-ipdb copied to clipboard

Exceptions that take more than one argument fail

Open max-sixty opened this issue 8 years ago • 1 comments

Here: https://github.com/flavioamieiro/nose-ipdb/blob/master/ipdbplugin.py#L62, which supplies a single argument.

For example:

from boto.exception import S3ResponseError
S3ResponseError??

Init signature: S3ResponseError(self, status, reason, body=None)
Source:
class S3ResponseError(StorageResponseError):
    """
    Error in response from S3.
    """
    pass

File:           /usr/local/lib/python2.7.11/lib/python2.7/site-packages/boto/exception.py
Type:           type

Thanks for the wonderful package!

max-sixty avatar Mar 04 '16 23:03 max-sixty

Thanks for the report @MaximilianR

I'm looking into it, but didn't manage to write a fix yet. I seems like you're triggering #16, that's why you're falling into this if statement in line 62. So, as a temporary workaround, if you can get rid of any print statements or anything else in the test that writes to stdout you would probably no hit this bug.

I'll upload a fix as soon as I find a way to get the original arguments in the context nose gives to me.

flavioamieiro avatar Mar 18 '16 12:03 flavioamieiro