]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Oct 2018 05:34:20 +0000 (22:34 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Oct 2018 05:34:20 +0000 (22:34 -0700)
(cherry picked from commit be4e5b89204283a62e369439025f00362d0424f6)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Doc/library/unittest.rst

index 99b9ccb8dd8f6b863c3776fb6f1b3aef076c778e..17deeddd37d179f92c13477d7ecca45a02b9a3d1 100644 (file)
@@ -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