[Python-checkins] Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)

Benjamin Peterson webhook-mailer at python.org
Tue Oct 2 01:18:47 EDT 2018


https://github.com/python/cpython/commit/be4e5b89204283a62e369439025f00362d0424f6
commit: be4e5b89204283a62e369439025f00362d0424f6
branch: master
author: Benjamin Peterson <benjamin at python.org>
committer: GitHub <noreply at github.com>
date: 2018-10-01T22:18:44-07:00
summary:

Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)

files:
M Doc/library/unittest.rst

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



More information about the Python-checkins mailing list