cpython/Lib/test/test_unittest/testmock
Chris Withers 04091c0833
`unittest.mock` test and coverage fixup (#130787)
* Mark functions that will never be called with # pragma: no cover

* Fix testpatch.PatchTest.test_exit_idempotent

.stop() and __exit__ have subtly different code paths, so to really test __exit__ idempotency, we need to call it specifically twice.
2025-03-03 11:44:59 +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 `unittest.mock` test and coverage fixup (#130787) 2025-03-03 11:44:59 +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
testsentinel.py
testthreadingmock.py
testwith.py