nose-devs/nose — Issue #386: assert_raises should accept a string as a callableObj
Author: jpellerin
Created: 2011-12-14 16:09:40+00:00
State: open

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: