- Now all patch functions will emit a warning instead of raising a
ValueError
when used
as a context-manager. Thanks @iforapsy for the PR (#221). - Additionally,
mocker.patch.context_manager
is available when the user intends to mock
a context manager (for examplethreading.Lock
object), which will not emit that
warning.