If you really intend to mock a context manager, mocker.patch.context_manager exists which won't issue the above warning. Requirements. Python 3.5+; pytest ...
確定! 回上一頁