summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-10-02 05:18:44 (GMT)
committerGitHub <noreply@github.com>2018-10-02 05:18:44 (GMT)
commitbe4e5b89204283a62e369439025f00362d0424f6 (patch)
treeda34890496acc83bec84d4f8fa7de64c5518adfe /Doc/library
parentcbda8fc5d76b10bcbb92d927537576c229143836 (diff)
downloadcpython-be4e5b89204283a62e369439025f00362d0424f6.zip
cpython-be4e5b89204283a62e369439025f00362d0424f6.tar.gz
cpython-be4e5b89204283a62e369439025f00362d0424f6.tar.bz2
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/unittest.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index adea431..da8ce40 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