[New-bugs-announce] [issue17660] mock.patch could whitelist builtins to not need create=True
Michael Foord
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".
----------
assignee: michael.foord
components: Library (Lib)
keywords: easy
messages: 186290
nosy: michael.foord
priority: normal
severity: normal
stage: needs patch
status: open
title: mock.patch could whitelist builtins to not need create=True
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17660>
_______________________________________
More information about the New-bugs-announce
mailing list