8000 bpo-38122: minor fixes to AsyncMock spec handling by voidspace · Pull Request #16099 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-38122: minor fixes to AsyncMock spec handling #16099

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 8 commits into from
Sep 13, 2019
Merged
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
Remove extraneous test
  • Loading branch information
voidspace committed Sep 13, 2019
commit 6f058d9d69441b9fe9b6793aefa89f2182e78a45
7 changes: 0 additions & 7 deletions Lib/unittest/test/testmock/testmock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,13 +1387,6 @@ def meth1(self, a, b): pass
)


def test_mock_add_spec_autospec_all_members(self):
for spec in [Something, Something()]:
mock_something = Mock()
mock_something.mock_add_spec(spec, autospec=True)
self._check_autospeced_something(mock_something)


def test_assert_has_calls_nested_without_spec(self):
m = MagicMock()
m().foo().bar().baz()
Expand Down
0