8000 bpo-37047: Refactor AsyncMock setup logic for autospeccing by tirkarthi · Pull Request #13574 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-37047: Refactor AsyncMock setup logic for autospeccing #13574

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 11 commits into from
May 27, 2019
Prev Previous commit
Next Next commit
Remove unused variable
  • Loading branch information
tirkarthi committed May 25, 2019
commit 9cd0344acd6b97757b0edb879dc93b84cdf8195b
1 change: 0 additions & 1 deletion Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2525,7 +2525,6 @@ def create_autospec(spec, spec_set=False, instance=False, _parent=None,
name=_name, **_kwargs)

if isinstance(spec, FunctionTypes):
wrapped_mock = mock
# should only happen at the top level because we don't
# recurse for functions
mock = _set_signature(mock, spec)
Expand Down
0