diff options
author | Benjamin Peterson <benjamin@python.org> | 2018-10-02 05:18:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 05:18:44 (GMT) |
commit | be4e5b89204283a62e369439025f00362d0424f6 (patch) | |
tree | da34890496acc83bec84d4f8fa7de64c5518adfe | |
parent | cbda8fc5d76b10bcbb92d927537576c229143836 (diff) | |
download | cpython-be4e5b89204283a62e369439025f00362d0424f6.zip cpython-be4e5b89204283a62e369439025f00362d0424f6.tar.gz cpython-be4e5b89204283a62e369439025f00362d0424f6.tar.bz2 |
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
-rw-r--r-- | Doc/library/unittest.rst | 2 |
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 |