Cleanup grammar in unittest.mock.seal documentation (#5107)

This commit is contained in:
Paul Ganssle 2018-01-06 08:25:34 -05:00 committed by Andrew Svetlov
parent 9f1e5f1b7f
commit 85ac726a40
1 changed files with 4 additions and 4 deletions

View File

@ -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