]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #22138: Fix mock.patch behavior when patching descriptors. Restore
authorSenthil Kumaran <senthil@uthcode.com>
Sat, 9 Jan 2016 07:43:29 +0000 (23:43 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Sat, 9 Jan 2016 07:43:29 +0000 (23:43 -0800)
commit81bc927da7f1b2cc0d2be642810b084666f63264
tree526e6abdaa667eedc6653fddf8b1ae5a20c10146
parentcbe6356c4260c3f040124fe213d1fd85280bedfe
Issue #22138: Fix mock.patch behavior when patching descriptors. Restore
original values after patching.

Patch contributed by Sean McCully.
Lib/unittest/mock.py
Lib/unittest/test/testmock/testpatch.py
Misc/NEWS