[issue26611] assertRaises callableObj cannot be used as a keyword with args

2016-03-22 Thread SilentGhost
SilentGhost added the comment: Documentation [0] has callable listed as a positional argument, and this is how it should be used. [0] https://docs.python.org/2.7/library/unittest.html#unittest.TestCase.assertRaises -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved st

[issue26611] assertRaises callableObj cannot be used as a keyword with args

2016-03-22 Thread Chris Mitchell
New submission from Chris Mitchell: assertRaises has callableObj listed as a keyword, though it is not possible to use it as a keyword when the callableObj takes arguments. The function definition is: def assertRaises(self, excClass, callableObj=None, *args, **kwargs): Therefore, using it