[New-bugs-announce] [issue17660] mock.patch could whitelist builtins to not need create=True
report at bugs.python.org
Mon Apr 8 12:48:10 CEST 2013
New submission from Michael Foord:
When patching builtin names (e.g. open) in a specific namespace you need to specify "create=True" or patch will refuse to create a name that doesn't exist.
patch could whitelist the builtin names, when the patch target is a module object, to not require the "create=True".
components: Library (Lib)
stage: needs patch
title: mock.patch could whitelist builtins to not need create=True
versions: Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce