[3.11] gh-102978: Fix mock.patch function signatures for class and staticmethod decorators (GH-103228) by miss-islington · Pull Request #103499 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Merged
Conversation
Contributor
Fixes unittest.mock.patch not enforcing function signatures for methods
decorated with @classmethod or @staticmethod when patch is called with
autospec=True.
(cherry picked from commit 59e0de4)
Co-authored-by: Tomas R tomas.roun8@gmail.com
…ticmethod decorators (pythonGH-103228) Fixes unittest.mock.patch not enforcing function signatures for methods decorated with @classmethod or @staticmethod when patch is called with autospec=True. (cherry picked from commit 59e0de4) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
miss-islington
requested a review
from cjw296
as a code owner
This was referenced
bedevere-bot
added
the
awaiting review
label
ambv
merged commit
e95ca78
into
python:3.11
bedevere-bot
removed
the
awaiting review
label
miss-islington
deleted the
backport-59e0de4-3.11
branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment