History log of /external/python/cpython3/Lib/test/test_importlib/test_util.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f3fd06a2e4d42cf8e4e82a5b6cbff1e5a515aff3 08-Sep-2016 Eric Snow <ericsnowcurrently@gmail.com> Issue #28026: Raise ImportError when exec_module() exists but create_module() is missing.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
035a1003820c0148b9a12f3034829fcc655a92bb 08-Sep-2016 Brett Cannon <brett@python.org> Issue #26667: Add path-like object support to importlib.util.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
15f44ab043b37c064d6891c7864205fed9fb0dd1 30-Aug-2016 Raymond Hettinger <python@rcn.com> Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
/external/python/cpython3/Lib/test/test_importlib/test_util.py
f299abdafa0f2b6eb7abae274861b19b361c96bc 13-Apr-2015 Brett Cannon <brett@python.org> Issue #23731: Implement PEP 488.

The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
ac9591a44a504af25bb85aaa09ba46393d8bdce9 27-Mar-2015 Brett Cannon <brett@python.org> Remove a dead test for a never-launched API
/external/python/cpython3/Lib/test/test_importlib/test_util.py
02d845400275076ef5ba2791c74b7670ac21f8a9 09-Jan-2015 Brett Cannon <brett@python.org> Issue #23014: Make importlib.abc.Loader.create_module() required when
importlib.abc.Loader.exec_module() is also defined.

Before this change, create_module() was optional **and** could return
None to trigger default semantics. This change now reduces the
options for choosing default semantics to one and in the most
backporting-friendly way (define create_module() to return None).
/external/python/cpython3/Lib/test/test_importlib/test_util.py
2a17bde930af72995a217f6625d763e828bf5ce1 30-May-2014 Brett Cannon <brett@python.org> Issue #20383: Introduce importlib.util.module_from_spec().

Along the way, dismantle importlib._bootstrap._SpecMethods as it was
no longer relevant and constructing the new function required
partially dismantling the class anyway.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
3497c0bf957be33c6794a4548cfa53dbb0f9b5df 16-May-2014 Eric Snow <ericsnowcurrently@gmail.com> Issue #21503: Use test_both() consistently in test_importlib.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
6029e086911be873b2ebacb933e3df08c23084e4 25-Jan-2014 Eric Snow <ericsnowcurrently@gmail.com> Issue 19944: Fix importlib.find_spec() so it imports parents as needed.

The function is also moved to importlib.util.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
1500d49c22e1a38d186f2dddfa6ba2c5a6cd7d5e 07-Jan-2014 Eric Snow <ericsnowcurrently@gmail.com> Issue 19713: Add PEP 451-related deprecations.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
b523f8433a8982e10eb41a3e2b37ee0e6d6a6e00 22-Nov-2013 Eric Snow <ericsnowcurrently@gmail.com> Implement PEP 451 (ModuleSpec).
/external/python/cpython3/Lib/test/test_importlib/test_util.py
1340049f65d01b2ea7d3ee13d19eae5939726cf7 18-Oct-2013 Brett Cannon <brett@python.org> Issue #16803: Move test_importlib.test_util to use both frozen and
source code.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
f24fecd4ac9050799d02a8354b7acfa12b65b1d3 17-Jun-2013 Brett Cannon <brett@python.org> Issue #18076: Introduce imoportlib.util.decode_source().

The helper function makes it easier to implement
imoprtlib.abc.InspectLoader.get_source() by making that function
require just the raw bytes for source code and handling all other
details.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
ef888024d86eccb29b10d55066fa33c3aa54a586 16-Jun-2013 Brett Cannon <brett@python.org> Issue #17177: stop using imp in test_importlib
/external/python/cpython3/Lib/test/test_importlib/test_util.py
a3c96154d2a8d3dd0023b927a99b485e574c9922 15-Jun-2013 Brett Cannon <brett@python.org> Issue #17907: touch up the code for imp.new_module().
/external/python/cpython3/Lib/test/test_importlib/test_util.py
05a647deedd11c227619f9463920526471db54f1 15-Jun-2013 Brett Cannon <brett@python.org> Issue #18192: Introduce importlib.util.MAGIC_NUMBER and document the
deprecation of imp.get_magic().
/external/python/cpython3/Lib/test/test_importlib/test_util.py
0dbb4c7f1338d1391e7214b564ef4638bc257347 01-Jun-2013 Brett Cannon <brett@python.org> Issues #18088, 18089: Introduce
importlib.abc.Loader.init_module_attrs() and implement
importlib.abc.InspectLoader.load_module().

The importlib.abc.Loader.init_module_attrs() method sets the various
attributes on the module being loaded. It is done unconditionally to
support reloading. Typically people used
importlib.util.module_for_loader, but since that's a decorator there
was no way to override it's actions, so init_module_attrs() came into
existence to allow for overriding. This is also why module_for_loader
is now pending deprecation (having its other use replaced by
importlib.util.module_to_load).

All of this allowed for importlib.abc.InspectLoader.load_module() to
be implemented. At this point you can now implement a loader with
nothing more than get_code() (which only requires get_source();
package support requires is_package()). Thanks to init_module_attrs()
the implementation of load_module() is basically a context manager
containing 2 methods calls, a call to exec(), and a return statement.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
b60a43eabf0ee17599caec484f4fe472cb4f36fe 01-Jun-2013 Brett Cannon <brett@python.org> Add a reset_name argument to importlib.util.module_to_load in order to
control whether to reset the module's __name__ attribute in case a
reload is being done.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
357c9fb0556e0ec9d440a4874b6af19d7b0bee7b 30-May-2013 Brett Cannon <brett@python.org> Rename importlib.util.ModuleManager to module_to_load so that the name
explains better what the context manager is providing.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
3dc48d6f6937f110388efd0f257fa12c323763a6 29-May-2013 Brett Cannon <brett@python.org> Issue #18070: importlib.util.module_for_loader() now sets __loader__
and __package__ unconditionally in order to do the right thing for
reloading.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
a3687f0d6896673689d8dd5c13e113947f66e921 28-May-2013 Brett Cannon <brett@python.org> Introduce importlib.util.ModuleManager which is a context manager to
handle providing (and cleaning up if needed) the module to be loaded.

A future commit will use the context manager in
Lib/importlib/_bootstrap.py and thus why the code is placed there
instead of in Lib/importlib/util.py.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
4802becb160d76c2e0993ce7e8abbbe23667f91f 13-Mar-2013 Brett Cannon <brett@python.org> Issue #17117: Have both import itself and importlib.util.set_loader()
set __loader__ on a module when set to None.

Thanks to Gökcen Eraslan for the fix.
/external/python/cpython3/Lib/test/test_importlib/test_util.py
45a5e3afe52ed89f298242143c5f7e2bb992ac63 20-Jul-2012 Brett Cannon <brett@python.org> Issue #15168: Move importlb.test to test.test_importlib.
This should make the Linux distros happy as it is now easier to leave
importlib's tests out of their base Python distribution.
/external/python/cpython3/Lib/test/test_importlib/test_util.py