cpython/Lib/test/test_unittest/testmock
Miss Islington (bot) 79df5d1c54
[3.14] gh-135368: Fix mocks on dataclass specs with instance=True (GH-135421) (#135503)
gh-135368: Fix mocks on dataclass specs with `instance=True` (GH-135421)

* gh-135368: Fix mocks on dataclass specs with `instance=True`

* Extend dataclass mock_methods

---------
(cherry picked from commit c8319a3fea)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2025-06-14 09:11:31 +00:00
..
__init__.py
__main__.py
support.py gh-119600: mock: do not access attributes of original when new_callable is set (#119601) 2024-06-11 06:41:12 +01:00
testasync.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testcallable.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testhelpers.py [3.14] gh-135368: Fix mocks on dataclass specs with instance=True (GH-135421) (#135503) 2025-06-14 09:11:31 +00:00
testmagicmethods.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testmock.py unittest.mock test and coverage fixup (#130787) 2025-03-03 11:44:59 +00:00
testpatch.py unittest.mock test and coverage fixup (#130787) 2025-03-03 11:44:59 +00:00
testsealable.py Fix mock code coverage. (#100580) 2022-12-28 12:36:26 +00:00
testsentinel.py
testthreadingmock.py gh-109653: Remove unused imports in the Lib/ directory (#109803) 2023-09-24 15:07:23 +01:00
testwith.py bpo-44185: Added close() to mock_open __exit__ (#26902) 2023-06-11 19:51:21 +01:00