Eric V. Smith
faae3adbb9
Changed importlib tests to use assertIs, assertIsInstance, etc., instead of just assertTrue.
2012-06-27 15:26:26 -04:00
Brett Cannon
d200bf534b
Add importlib.util.resolve_name().
2012-05-13 13:45:09 -04:00
Brett Cannon
efad00d520
Issue #14646 : __import__() now sets __loader__ if need be.
...
importlib.util.module_for_loader also will set __loader__ along with
__package__. This is in conjunction to a forthcoming update to PEP 302
which will make these two attributes required for loaders to set.
2012-04-27 17:27:14 -04:00
Brett Cannon
7bd329d800
Issue #12599 : Be more strict in accepting None vs. a false-like object
...
in importlib.
Thanks to PJE for pointing out the issue and Nick Coghlan for filing
the bug.
2012-04-17 21:41:35 -04:00
Meador Inge
96ff0840b6
Issue #13593 : updating the importlib utility decorators for __qualname__.
2011-12-14 22:53:13 -06:00
Brett Cannon
c56b094bab
Move over to assertIs.
2010-06-21 02:49:35 +00:00
Benjamin Peterson
c9c0f201fe
convert old fail* assertions to assert*
2009-06-30 23:06:06 +00:00
Brett Cannon
435aad878c
Rename importlib.util.set___package__ to set_package.
2009-03-04 16:07:00 +00:00
Brett Cannon
57b46f5b0e
Expose importlib.util.set___package__.
2009-03-02 14:38:26 +00:00
Brett Cannon
d2e7b33815
Implement the more specific PEP 302 semantics for loaders and what happens upon
...
load failure in relation to reloads. Also expose
importlib.util.module_for_loader to handle all of the details of this along
with making sure all current loaders behave nicely.
2009-02-17 02:45:03 +00:00