From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 2 Oct 2018 05:34:20 +0000 (-0700) Subject: Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670) X-Git-Tag: v3.6.7rc2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58376c6c97db692f06d0ea930d9b6f02e2c1ebe3;p=thirdparty%2FPython%2Fcpython.git Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670) (cherry picked from commit be4e5b89204283a62e369439025f00362d0424f6) Co-authored-by: Benjamin Peterson --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 99b9ccb8dd8f..17deeddd37d1 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -925,7 +925,7 @@ Test cases +---------------------------------------------------------+--------------------------------------+------------+ .. method:: assertRaises(exception, callable, *args, **kwds) - assertRaises(exception, msg=None) + assertRaises(exception, *, msg=None) Test that an exception is raised when *callable* is called with any positional or keyword arguments that are also passed to