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

assert_raises should accept a string as a callableObj #386

Open
jpellerin opened this issue Dec 14, 2011 · 0 comments
Open

assert_raises should accept a string as a callableObj #386

jpellerin opened this issue Dec 14, 2011 · 0 comments
Assignees

Comments

@jpellerin
Copy link
Member

The current implementation is:

assert_raises(excClass, callableObj, _args, *_kwargs)

I recently moved a whole swag of test code over from py.test which allows callableObj to be a string that is simply exec()'ed. I think that allowing this would allow greater interoperability with py.test, and it seems slightly more intuitive to me.

Tom Harris

Google Code Info:
Issue #: 360
Author: celephicus@gmail.com
Created On: 2010-08-09T04:26:28.000Z
Closed On:

@ghost ghost assigned jpellerin Dec 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant