Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85ac726

Browse files
pganssleasvetlov
authored andcommitted
Cleanup grammar in unittest.mock.seal documentation (#5107)
1 parent 9f1e5f1 commit 85ac726

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/unittest.mock.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,12 +2370,12 @@ Sealing mocks
23702370

23712371
.. function:: seal(mock)
23722372

2373-
Seal will disable the creation of mock children by preventing to get or set
2374-
any new attribute on the sealed mock. The sealing process is performed recursively.
2373+
Seal will disable the creation of mock children by preventing getting or setting
2374+
of any new attribute on the sealed mock. The sealing process is performed recursively.
23752375

23762376
If a mock instance is assigned to an attribute instead of being dynamically created
2377-
it won't be considered in the sealing chain. This allows to prevent seal from fixing
2378-
part of the mock object.
2377+
it won't be considered in the sealing chain. This allows one to prevent seal from
2378+
fixing part of the mock object.
23792379

23802380
>>> mock = Mock()
23812381
>>> mock.submock.attribute1 = 2

0 commit comments

Comments
 (0)