This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Chris Mitchell
Recipients Chris Mitchell
Date 2016-03-22.13:38:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458653901.28.0.305409918599.issue26611@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-03-22 13:38:21Chris Mitchellsetrecipients: + Chris Mitchell
2016-03-22 13:38:21Chris Mitchellsetmessageid: <1458653901.28.0.305409918599.issue26611@psf.upfronthosting.co.za>
2016-03-22 13:38:21Chris Mitchelllinkissue26611 messages
2016-03-22 13:38:20Chris Mitchellcreate