Skip to content
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

bpo-38108: Makes mock objects inherit from Base #16060

Merged
merged 6 commits into from
Sep 29, 2019

Conversation

lisroach
Copy link
Contributor

@lisroach lisroach commented Sep 12, 2019

Updates the few Mock classes that do not inherit from Base to properly inherit from base. Updates the super() calls that should go with them as well.

That was all I planned on doing with this diff, but the changes to get AsyncMock inheritance working right with subclasses was so linked with this diff I merged it into one to prevent temporary breaking changes.

https://bugs.python.org/issue38108

Copy link
Contributor

@asvetlov asvetlov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lisroach
Copy link
Contributor Author

Oops, didn't mean to do that

@lisroach lisroach merged commit 9a7d951 into python:master Sep 29, 2019
@lisroach lisroach deleted the issue38108 branch September 29, 2019 01:42
@miss-islington
Copy link
Contributor

Thanks @lisroach for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 29, 2019
(cherry picked from commit 9a7d951)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
@bedevere-bot
Copy link

GH-16470 is a backport of this pull request to the 3.8 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants