[issue23075] Mock backport in 2.7 relies on implementation defined behavior

Alex Gaynor report at bugs.python.org
Thu Dec 18 00:52:00 CET 2014


New submission from Alex Gaynor:

Whether __builtins__ is a module or a dict is undefined in CPython. Use the reliably well defined `import __builtin__` instead.

----------
components: Library (Lib)
files: mock-backport.diff
keywords: patch
messages: 232838
nosy: alex, benjamin.peterson, dstufft
priority: normal
severity: normal
status: open
title: Mock backport in 2.7 relies on implementation defined behavior
versions: Python 2.7
Added file: http://bugs.python.org/file37484/mock-backport.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23075>
_______________________________________


More information about the Python-bugs-list mailing list