]> granicus.if.org Git - python/commit
bpo-35512: Resolve string target to patch.dict decorator during function call GH...
authorXtreak <tir.karthi@gmail.com>
Sun, 24 Feb 2019 18:54:49 +0000 (00:24 +0530)
committerChris Withers <chris@withers.org>
Sun, 24 Feb 2019 18:54:49 +0000 (18:54 +0000)
commita875ea58b29fbf510f9790ae1653eeaa47dc0de8
tree076c625afd240521c200df9b98485846f32687a4
parentaeca373b339e0ea9739536ce6b43bd90f3b89873
bpo-35512: Resolve string target to patch.dict decorator during function call GH#12000

* Resolve string target to patch.dict during function call

* Add NEWS entry

* Remove unneeded call

* Restore original value for support.target and refactor assertions

* Add extra assertion to verify unpatched dict
Lib/unittest/mock.py
Lib/unittest/test/testmock/support.py
Lib/unittest/test/testmock/testpatch.py
Misc/NEWS.d/next/Library/2019-02-24-00-04-10.bpo-35512.eWDjCJ.rst [new file with mode: 0644]