bpo-36366: Return None on stopping unstarted patch object (GH-12472)



Return None after calling unittest.mock.patch.object.stop() regardless of whether the object was started. This makes the method idempotent.


https://bugs.python.org/issue36366
3 files changed