summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMario Corchero <mariocj89@gmail.com>2017-10-17 11:35:11 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-10-17 11:35:11 (GMT)
commit552be9d7e64f91b8e4ba5b29cd5dcc442d56f92c (patch)
tree1e336d15954b38d33b069ad2caae3775dcee373e /Misc
parent2bd37c227e8a042e036c7455d974e3d0b36aed53 (diff)
downloadcpython-552be9d7e64f91b8e4ba5b29cd5dcc442d56f92c.zip
cpython-552be9d7e64f91b8e4ba5b29cd5dcc442d56f92c.tar.gz
cpython-552be9d7e64f91b8e4ba5b29cd5dcc442d56f92c.tar.bz2
bpo-30541: Add new method to seal mocks (GH61923)
The new method allows the developer to control when to stop the feature of mocks that automagically creates new mocks when accessing an attribute that was not declared before Signed-off-by: Mario Corchero <mariocj89@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2017-10-17-12-04-37.bpo-30541.q3BM6C.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-10-17-12-04-37.bpo-30541.q3BM6C.rst b/Misc/NEWS.d/next/Library/2017-10-17-12-04-37.bpo-30541.q3BM6C.rst
new file mode 100644
index 0000000..7eb5e16
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-10-17-12-04-37.bpo-30541.q3BM6C.rst
@@ -0,0 +1,2 @@
+Add new function to seal a mock and prevent the automatically creation of
+child mocks. Patch by Mario Corchero.