Skip to content

Commit 484c899

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 cd4dd93 commit 484c899

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
@@ -944,7 +944,7 @@ Test cases
944944
+---------------------------------------------------------+--------------------------------------+------------+
945945

946946
.. method:: assertRaises(exception, callable, *args, **kwds)
947-
assertRaises(exception, msg=None)
947+
assertRaises(exception, *, msg=None)
948948
949949
Test that an exception is raised when *callable* is called with any
950950
positional or keyword arguments that are also passed to

0 commit comments

Comments
 (0)