From 0aa05fe8972634335a47635f15de9292b9d3225e Mon Sep 17 00:00:00 2001 From: Joan Massich Date: Mon, 18 Mar 2019 00:34:22 +0100 Subject: [PATCH 1/2] Fix typo in unittest.mock documentation: manger -> manager (GH-12352) (cherry picked from commit dc69f69f14fb89511d018a3927fc6378a58d2def) --- Doc/library/unittest.mock.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 6daf0feca3ce00..b76ae712a971b7 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -1418,7 +1418,7 @@ passed by keyword *after* any of the standard arguments created by :func:`patch` >>> test_function() If :func:`patch.multiple` is used as a context manager, the value returned by the -context manger is a dictionary where created mocks are keyed by name: +context manager is a dictionary where created mocks are keyed by name:: >>> with patch.multiple('__main__', thing=DEFAULT, other=DEFAULT) as values: ... assert 'other' in repr(values['other']) From 19e6e7622e58636d3abc103b4789c2e07097cbee Mon Sep 17 00:00:00 2001 From: Mariatta Wijaya Date: Sun, 17 Mar 2019 16:46:17 -0700 Subject: [PATCH 2/2] [3.7] Fix typo in unittest.mock documentation: manger -> manager (GH-12352). (cherry picked from commit dc69f69f14fb89511d018a3927fc6378a58d2def) Co-authored-by: Joan Massich