`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.
C
Chris Withers committed
04091c083340dde7d4eeb6d945c70f3b37d88f85
Parent: f693f84
Committed by GitHub <noreply@github.com>
on 3/3/2025, 11:44:59 AM