Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
85ac726a
Commit
85ac726a
authored
Jan 06, 2018
by
Paul Ganssle
Committed by
Andrew Svetlov
Jan 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup grammar in unittest.mock.seal documentation (#5107)
parent
9f1e5f1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/library/unittest.mock.rst
Doc/library/unittest.mock.rst
+4
-4
No files found.
Doc/library/unittest.mock.rst
View file @
85ac726a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment