summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-10-02 05:34:20 (GMT)
committerGitHub <noreply@github.com>2018-10-02 05:34:20 (GMT)
commit58376c6c97db692f06d0ea930d9b6f02e2c1ebe3 (patch)
treeefea15b31f2a1559145497c9e0616e12a030e26c /Doc/library
parent7455bf46a222780805fd0375328f5732e5bbb684 (diff)
downloadcpython-58376c6c97db692f06d0ea930d9b6f02e2c1ebe3.zip
cpython-58376c6c97db692f06d0ea930d9b6f02e2c1ebe3.tar.gz
cpython-58376c6c97db692f06d0ea930d9b6f02e2c1ebe3.tar.bz2
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
(cherry picked from commit be4e5b89204283a62e369439025f00362d0424f6) Co-authored-by: Benjamin Peterson <benjamin@python.org>
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 99b9ccb..17deedd 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -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