Brett Cannon added the comment:
test_importlib now runs both frozen and source code for all relevant tests.
Should allow for making changes in the source w/o recompiling and making sure
any source tests pass. Also makes sure the pure Python implementation of import
that mirrors what import.c
Eric Snow added the comment:
Hurray!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16803
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
It looks like as long as you block _frozen_importlib and do a fresh import of
importlib you can make sure to use the source version of importlib._bootstrap
instead of _frozen_importlib.
from test.support import import_fresh_module
mod =
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16803
___
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16803
___
___
Python-bugs-list
Ezio Melotti added the comment:
Is the usual PEP 399 idiom enough, or is something more advanced required?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16803
___
Brett Cannon added the comment:
With some tricky use of import_fresh_module() because importlib.__init__ does
some masking trickery, it should ... I think. =)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16803
Changes by Brett Cannon br...@python.org:
--
title: Make time_importlib run tests under both _frozen_importlib and
importlib._bootstrap - Make test_importlib run tests under both
_frozen_importlib and importlib._bootstrap
___
Python tracker