From: Benjamin Peterson Date: Tue, 2 Oct 2018 05:18:44 +0000 (-0700) Subject: Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670) X-Git-Tag: v3.8.0a1~848 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be4e5b89204283a62e369439025f00362d0424f6;p=thirdparty%2FPython%2Fcpython.git Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670) --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index adea431ed48b..da8ce4082043 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -944,7 +944,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