summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMario Corchero <mariocj89@gmail.com>2020-01-24 08:38:33 (GMT)
committerChris Withers <chris@withers.org>2020-01-24 08:38:32 (GMT)
commite131c9720d087c0c4988bd2a5c62020feb9d1d77 (patch)
tree209230859dbb25990ed04ce139bf06abac490e04 /Misc
parent1d0c5e16eab29d55773cc4196bb90d2bf12e09dd (diff)
downloadcpython-e131c9720d087c0c4988bd2a5c62020feb9d1d77.zip
cpython-e131c9720d087c0c4988bd2a5c62020feb9d1d77.tar.gz
cpython-e131c9720d087c0c4988bd2a5c62020feb9d1d77.tar.bz2
Fix `mock.patch.dict` to be stopped with `mock.patch.stopall` (#17606)
As the function was not registering in the active patches, the mocks started by `mock.patch.dict` were not being stopped when `mock.patch.stopall` was being called.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-12-14-14-38-40.bpo-21600.kC4Cgh.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-12-14-14-38-40.bpo-21600.kC4Cgh.rst b/Misc/NEWS.d/next/Library/2019-12-14-14-38-40.bpo-21600.kC4Cgh.rst
new file mode 100644
index 0000000..0f72639
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-12-14-14-38-40.bpo-21600.kC4Cgh.rst
@@ -0,0 +1,2 @@
+Fix :func:`mock.patch.stopall` to stop active patches that were created with
+:func:`mock.patch.dict`.