* 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
The function is never imported and the implementation is actually buggy. As `warnings.catch_warnings` is not imported here.
Patch by Jon Dufresne.