10000 gh-83403: Test `parent` param in `Mock.__init__` by sobolevn · Pull Request #103630 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-83403: Test parent param in Mock.__init__ #103630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review
  • Loading branch information
sobolevn committed Apr 24, 2023
commit 854ea82cb3430edf068fc3bbd61630dfc4e42d00
2 changes: 0 additions & 2 deletions Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ the *new_callable* argument to :func:`patch`.
or get an attribute on the mock that isn't on the object passed as
*spec_set* will raise an :exc:`AttributeError`.

* *parent*: Explicit parent mock instance.

* *side_effect*: A function to be called whenever the Mock is called. See
the :attr:`~Mock.side_effect` attribute. Useful for raising exceptions or
dynamically changing return values. The function is called with the same
Expand Down
2 changes: 0 additions & 2 deletions Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,8 +1265,6 @@ class or instance) that acts as the specification for the mock object. If
mock. This can be useful for debugging. The name is propagated to child
mocks.

* `parent`: Explicit parent mock instance.

Mocks can also be called with arbitrary keyword arguments. These will be
used to set attributes on the mock after it is created.
"""
Expand Down
0