]> granicus.if.org Git - python/commit
bpo-30541: Add new method to seal mocks (GH61923)
authorMario Corchero <mariocj89@gmail.com>
Tue, 17 Oct 2017 11:35:11 +0000 (12:35 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Oct 2017 11:35:11 +0000 (04:35 -0700)
commit552be9d7e64f91b8e4ba5b29cd5dcc442d56f92c
tree1e336d15954b38d33b069ad2caae3775dcee373e
parent2bd37c227e8a042e036c7455d974e3d0b36aed53
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>
Doc/library/unittest.mock.rst
Doc/whatsnew/3.7.rst
Lib/unittest/mock.py
Lib/unittest/test/testmock/testsealable.py [new file with mode: 0644]
Misc/NEWS.d/next/Library/2017-10-17-12-04-37.bpo-30541.q3BM6C.rst [new file with mode: 0644]