commit | 079655cd9da2fd5fc22126b422ef3c100a3f96a2 | [log] [tgz] |
---|---|---|
author | Tomas R <tomas.roun8@gmail.com> | Thu Apr 13 09:37:57 2023 +0200 |
committer | Chris Withers <chris@withers.org> | Sun Apr 16 11:20:34 2023 +0100 |
tree | 74d8f2402847bf48ebd98ec507854f9369483e69 | |
parent | 1c7bfeff6575a5fee073bb648126780e00923936 [diff] |
gh-102978: Fix mock.patch function signatures for class and staticmethod decorators (#103228) Fixes unittest.mock.patch not enforcing function signatures for methods decorated with @classmethod or @staticmethod when patch is called with autospec=True. Backports: 59e0de4903c02e72b329e505fddf1ad9794928bc Signed-off-by: Chris Withers <chris@simplistix.co.uk>