SIGN IN SIGN UP

[3.11] gh-102978: Fix mock.patch function signatures for class and staticmethod 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 59e0de4903c02e72b329e505fddf1ad9794928bc)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
M
Miss Islington (bot) committed
e95ca78fab1c9ef288fcca72da7404236ba072bd
Parent: 1692a16
Committed by GitHub <noreply@github.com> on 5/22/2023, 10:47:12 AM