diff options
| author | Mario Corchero <mcorcherojim@bloomberg.net> | 2019-05-28 13:53:31 +0100 |
|---|---|---|
| committer | Cheryl Sabella <cheryl.sabella@gmail.com> | 2019-05-28 08:53:30 -0400 |
| commit | 04530812e90e45a37ed84e83505d63db7edc1262 (patch) | |
| tree | c26e4f6492e37209667b61943cb5a156c2f57aeb /Misc | |
| parent | eb65e2443ac21739baf6d373abc7b4638b9d6927 (diff) | |
| download | cpython-git-04530812e90e45a37ed84e83505d63db7edc1262.tar.gz | |
bpo-32299: Return patched dict when using patch.dict as a context manager (GH-11062)
Diffstat (limited to 'Misc')
| -rw-r--r-- | Misc/NEWS.d/next/Library/2017-12-13-17-49-56.bpo-32299.eqAPWs.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-12-13-17-49-56.bpo-32299.eqAPWs.rst b/Misc/NEWS.d/next/Library/2017-12-13-17-49-56.bpo-32299.eqAPWs.rst new file mode 100644 index 0000000000..4e1afa9a43 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-12-13-17-49-56.bpo-32299.eqAPWs.rst @@ -0,0 +1,2 @@ +Changed :func:`unittest.mock.patch.dict` to return the patched +dictionary when used as context manager. Patch by Vadim Tsander. |
