[New-bugs-announce] [issue21499] test_importlib incorrectly relies on <module>.__builtins__

Eric Snow report at bugs.python.org
Tue May 13 20:13:54 CEST 2014


New submission from Eric Snow:

Per the docs*, a module's __builtins__ may be a module or a dict or even missing.  However, test.test_importlib.test_api.ReloadTests checks __builtins__ as part of several tests.  Instead, the tests should ignore __bulitins__.  I'll push a patch in a minute that fixes that.

* https://docs.python.org/3/library/builtins.html

----------
assignee: eric.snow
components: Tests
messages: 218474
nosy: brett.cannon, eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: test_importlib incorrectly relies on <module>.__builtins__
type: behavior
versions: Python 3.4, Python 3.5

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


More information about the New-bugs-announce mailing list