[3.7] bpo-35512: Resolve string target to patch.dict decorator during function call GHGH-12000 by miss-islington · Pull Request #12021 · python/cpython

@tirkarthi @miss-islington

…ion call GHGH-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
(cherry picked from commit a875ea5)

Co-authored-by: Xtreak <tir.karthi@gmail.com>