This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mock backport in 2.7 relies on implementation defined behavior
Type: Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: BreamoreBoy, alex, benjamin.peterson, dstufft, python-dev, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2014-12-17 23:52 by alex, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mock-backport.diff alex, 2014-12-17 23:52
Messages (4)
msg232838 - (view) Author: Alex Gaynor (alex) * (Python committer) Date: 2014-12-17 23:52
Whether __builtins__ is a module or a dict is undefined in CPython. Use the reliably well defined `import __builtin__` instead.
msg238832 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2015-03-21 19:49
Can we have a commit review please as this is such a simple patch.
msg238833 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-03-21 20:05
New changeset d0b497c86c60 by Serhiy Storchaka in branch '2.7':
Issue #23075: Whether __builtins__ is a module or a dict is undefined in
https://hg.python.org/cpython/rev/d0b497c86c60
msg238834 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-21 20:09
Done. Thanks for raising it Mark.
History
Date User Action Args
2022-04-11 14:58:11adminsetgithub: 67264
2015-03-21 20:09:30serhiy.storchakasetstatus: open -> closed
resolution: fixed
messages: + msg238834

stage: resolved
2015-03-21 20:05:37python-devsetnosy: + python-dev
messages: + msg238833
2015-03-21 20:04:20serhiy.storchakasetassignee: serhiy.storchaka

nosy: + serhiy.storchaka
2015-03-21 19:49:17BreamoreBoysetnosy: + BreamoreBoy
messages: + msg238832
2014-12-17 23:52:00alexcreate