Skip to content

Commit 58376c6

Browse files
Make it clear that the msg argument to assertRaises is keyword-only. (GH-9670)
(cherry picked from commit be4e5b8) Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent 7455bf4 commit 58376c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/unittest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ Test cases
925925
+---------------------------------------------------------+--------------------------------------+------------+
926926

927927
.. method:: assertRaises(exception, callable, *args, **kwds)
928-
assertRaises(exception, msg=None)
928+
assertRaises(exception, *, msg=None)
929929
930930
Test that an exception is raised when *callable* is called with any
931931
positional or keyword arguments that are also passed to

0 commit comments

Comments
 (0)