You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_importlib incorrectly relies on <module>.__builtins__ #65698
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.
Activity
ericsnowcurrently commentedon May 13, 2014
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.
python-dev commentedon May 13, 2014
New changeset 16d26391ec36 by Eric Snow in branch '3.4':
Issue bpo-21499: Ignore __builtins__ in several test_importlib.test_api tests.
http://hg.python.org/cpython/rev/16d26391ec36
New changeset bdf94b2c0639 by Eric Snow in branch 'default':
Merge from 3.4 (for bpo-21499).
http://hg.python.org/cpython/rev/bdf94b2c0639