diff options
author | Paul Ganssle <pganssle@users.noreply.github.com> | 2018-01-06 13:25:34 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2018-01-06 13:25:34 (GMT) |
commit | 85ac726a40707ae68a23d568c322868e353217ce (patch) | |
tree | 4e1d7c52bdd3a2304057210082077dac213c243d /Doc | |
parent | 9f1e5f1b7f074e026843a5d70834233a95a6bf9d (diff) | |
download | cpython-85ac726a40707ae68a23d568c322868e353217ce.zip cpython-85ac726a40707ae68a23d568c322868e353217ce.tar.gz cpython-85ac726a40707ae68a23d568c322868e353217ce.tar.bz2 |
Cleanup grammar in unittest.mock.seal documentation (#5107)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.mock.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index b6eb8cc..ac9dd3b 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -2370,12 +2370,12 @@ Sealing mocks .. function:: seal(mock) - Seal will disable the creation of mock children by preventing to get or set - any new attribute on the sealed mock. The sealing process is performed recursively. + Seal will disable the creation of mock children by preventing getting or setting + of any new attribute on the sealed mock. The sealing process is performed recursively. If a mock instance is assigned to an attribute instead of being dynamically created - it won't be considered in the sealing chain. This allows to prevent seal from fixing - part of the mock object. + it won't be considered in the sealing chain. This allows one to prevent seal from + fixing part of the mock object. >>> mock = Mock() >>> mock.submock.attribute1 = 2 |