]> granicus.if.org Git - python/commitdiff
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
authorBenjamin Peterson <benjamin@python.org>
Tue, 2 Oct 2018 05:18:44 +0000 (22:18 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Oct 2018 05:18:44 +0000 (22:18 -0700)
Doc/library/unittest.rst

index adea431ed48b09219a2d491a04b0455bdf4e1093..da8ce4082043b0a9cfe1620b178cbbe8743ce214 100644 (file)
@@ -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