cpython/Lib/unittest/test/testmock
Miss Islington (bot) e95ca78fab
[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 59e0de4903)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
2023-05-22 12:47:12 +02:00
..
__init__.py
__main__.py Adjust comment 2013-09-14 00:40:46 +02:00
support.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testasync.py [3.11] gh-100287: Fix unittest.mock.seal with AsyncMock (GH-100496) (#100506) 2022-12-24 14:39:19 -06:00
testcallable.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testhelpers.py [3.11] gh-102978: Fix mock.patch function signatures for class and staticmethod decorators (GH-103228) (#103499) 2023-05-22 12:47:12 +02:00
testmagicmethods.py Clarify and fix assertions that mocks have not been awaited (GH-18196) 2020-01-27 14:55:56 +00:00
testmock.py gh-100739: Respect mock spec when checking for unsafe prefixes (GH-100740) 2023-01-04 15:08:37 -08:00
testpatch.py [3.11] gh-102978: Fix mock.patch function signatures for class and staticmethod decorators (GH-103228) (#103499) 2023-05-22 12:47:12 +02:00
testsealable.py Fix typos in the Lib directory (GH-28775) 2021-10-06 16:13:48 -07:00
testsentinel.py Issue #20804: The unittest.mock.sentinel attributes now preserve their 2017-01-11 20:13:03 +02:00
testwith.py Restrict use of Mock objects as specs (GH-31090) 2022-02-03 00:41:19 -08:00