Message262183
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 with a keyword such as:
self.assertRaises(Exception, callableObj=my_function, args_to_function)
will fail due to passing arguments after a keyword. |
|
Date |
User |
Action |
Args |
2016-03-22 13:38:21 | Chris Mitchell | set | recipients:
+ Chris Mitchell |
2016-03-22 13:38:21 | Chris Mitchell | set | messageid: <1458653901.28.0.305409918599.issue26611@psf.upfronthosting.co.za> |
2016-03-22 13:38:21 | Chris Mitchell | link | issue26611 messages |
2016-03-22 13:38:20 | Chris Mitchell | create | |
|