Description
Mock objects can isolate legacy Python 2 test suites with the unittest.mock backport. This deprecated library helps maintainers patch objects, assert calls, and replace dependencies while testing.
It is a testing dependency and not part of production behavior. Prefer maintained testing stacks when modernizing projects.