gh-102978: Fix mock.patch function signatures for class and staticmethod decorators by tomasr8 · Pull Request #103228 · python/cpython
Fixes unittest.mock.patch not enforcing function signatures for methods decorated with @classmethod or @staticmethod when patch is called with autospec=True.
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…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>
aisk pushed a commit to aisk/cpython that referenced this pull request
…ticmethod decorators (python#103228) Fixes unittest.mock.patch not enforcing function signatures for methods decorated with @classmethod or @staticmethod when patch is called with autospec=True.
ambv pushed a commit that referenced this pull request
…aticmethod decorators (GH-103228) (#103499) 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters