Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #22002: Make full use of test discovery in test sub-packages. | Zachary Ware | 2014-07-23 | 12 | -97/+45 |
| | | | | | | Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery. | ||||
* | Issue #19593: Use specific asserts in importlib tests. | Serhiy Storchaka | 2014-07-07 | 4 | -4/+4 |
| | |||||
* | Issue #21499: Ignore __builtins__ in several test_importlib.test_api tests. | Eric Snow | 2014-05-13 | 1 | -7/+8 |
| | |||||
* | Issue #21097: Move test_namespace_pkgs into test_importlib. | Eric Snow | 2014-03-29 | 15 | -0/+302 |
| | |||||
* | merge 3.3 (#20796) | Benjamin Peterson | 2014-02-27 | 1 | -0/+1 |
|\ | |||||
| * | fix importlib test failure when bytecode writing is disabled (closes #20796) | Benjamin Peterson | 2014-02-27 | 1 | -0/+1 |
| | | | | | | | | Patch by Berker Peksag. | ||||
| * | Issue #19596: Set untestable tests in test_importlib to None | Zachary Ware | 2013-11-19 | 6 | -55/+26 |
| | | | | | | | | to avoid reporting success on empty tests. | ||||
* | | Issue #20763: Fix importlib.machinery.PathFinder to support | Brett Cannon | 2014-02-26 | 1 | -0/+24 |
| | | | | | | | | | | | | PathEntryFinder instances which only define find_module(). Reported by Yukihiro Nakadaira. | ||||
* | | Issue 19944: Fix importlib.find_spec() so it imports parents as needed. | Eric Snow | 2014-01-25 | 3 | -150/+182 |
| | | | | | | | | The function is also moved to importlib.util. | ||||
* | | Issue #19719: Update various finder and loader ABCs such that their | Brett Cannon | 2014-01-07 | 1 | -0/+132 |
| | | | | | | | | | | | | | | old methods now provide implementations when PEP 451 APIs are present. This should help with backwards-compatibility with code which has not been updated to work with PEP 451. | ||||
* | | Issue 19713: Add PEP 451-related deprecations. | Eric Snow | 2014-01-07 | 9 | -59/+180 |
| | | |||||
* | | Remove dead PEP 451 code. | Eric Snow | 2014-01-07 | 1 | -12/+0 |
| | | |||||
* | | Issue #19927: Add __eq__ to path-based loaders in importlib. | Eric Snow | 2014-01-04 | 3 | -2/+23 |
| | | |||||
* | | Issue #20097: Fix bad use of "self" in importlib's WindowsRegistryFinder. | Eric Snow | 2014-01-03 | 1 | -0/+29 |
| | | |||||
* | | Issue #18864: Add a setter for ModuleSpec.has_location. | Eric Snow | 2013-12-11 | 1 | -0/+7 |
| | | |||||
* | | Remove commented-out module spec test code and an out-of-date note. | Eric Snow | 2013-12-10 | 1 | -10/+0 |
| | | |||||
* | | Issue 19851: Fix a regression in reloading submodules. | Eric Snow | 2013-12-10 | 1 | -0/+68 |
| | | |||||
* | | Issue #19758: silence PendingDeprecationWarnings in test_importlib. | Eric Snow | 2013-12-08 | 1 | -4/+8 |
| | | |||||
* | | Issue #19712: Update test.test_importlib.source for PEP 451 | Brett Cannon | 2013-12-06 | 4 | -24/+140 |
| | | |||||
* | | Issue #19712: Update test.test_importlib.import_ to test/use PEP 451 | Brett Cannon | 2013-12-06 | 8 | -61/+114 |
| | | | | | | | | where appropriate. | ||||
* | | Issue #19712: Port test.test_importlib.import_ tests to use PEP 451 | Brett Cannon | 2013-11-29 | 3 | -16/+68 |
| | | | | | | | | that don't require changing test.test_importlib.util.mock_modules(). | ||||
* | | Issue #19698: Remove exec_module() from the built-in and extension | Brett Cannon | 2013-11-29 | 2 | -137/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | module loaders. Due to the fact that the call signatures for extension modules and built-in modules does not allow for the specifying of what module to initialize and that on Windows all extension modules are built-in modules, work to clean up built-in and extension module initialization will have to wait until Python 3.5. Because of this the semantics of exec_module() would be incorrect, so removing the methods for now is the best option; load_module() is still used as a fallback by importlib and so this won't affect semantics. | ||||
* | | Make test_importlib output easier to trace back to the failing test | Brett Cannon | 2013-11-22 | 1 | -0/+1 |
| | | | | | | | | class. | ||||
* | | Issue #18864: Don't try and use unittest as a testing module for | Brett Cannon | 2013-11-22 | 1 | -6/+18 |
| | | | | | | | | | | built-in loading; leads to a reload scenario where attributes get set which are wrong after the test. | ||||
* | | Implement PEP 451 (ModuleSpec). | Eric Snow | 2013-11-22 | 13 | -336/+1403 |
| | | |||||
* | | Issue #16803: test.test_importlib.source now tests frozen and source code | Brett Cannon | 2013-11-08 | 5 | -74/+91 |
| | | |||||
* | | Simplify test.test_importlib.__main__ | Brett Cannon | 2013-11-08 | 1 | -10/+1 |
| | | |||||
* | | Issue #16803: test.test_importlib.import_ now tests frozen and source code | Brett Cannon | 2013-11-08 | 11 | -154/+146 |
| | | |||||
* | | Issue #16803: test.test_importlib.frozen now runs both frozen and source code | Brett Cannon | 2013-11-08 | 2 | -31/+33 |
| | | |||||
* | | Issue #19413: Disregard duplicate namespace portions during reload tests. | Eric Snow | 2013-11-01 | 1 | -2/+2 |
| | | |||||
* | | Issue #19413: Restore pre-3.3 reload() semantics of re-finding modules. | Eric Snow | 2013-11-01 | 1 | -0/+120 |
| | | |||||
* | | Issue #16803: Move test.test_importlib.extension to use both frozen and ↵ | Brett Cannon | 2013-10-25 | 4 | -44/+44 |
| | | | | | | | | source importlib code | ||||
* | | Issue #16803: Have test.test_importlib.builtin test both frozen and | Brett Cannon | 2013-10-25 | 2 | -26/+33 |
| | | | | | | | | source importlib. | ||||
* | | Issue #16803: Stop having test.test_importlib.abc ABCs inherit from | Brett Cannon | 2013-10-25 | 9 | -16/+16 |
| | | | | | | | | | | unittest.TestCase in prep of running tests under frozen and source importlib. | ||||
* | | [Issue #19357] Ensure module "loaded" during tests gets forgotten. | Eric Snow | 2013-10-23 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | [Issue #19357] Ensure module "loaded" during tests gets forgotten. | Eric Snow | 2013-10-23 | 1 | -1/+1 |
| | | |||||
* | | Fix test to not consider mixin a standalone test | Brett Cannon | 2013-10-18 | 1 | -1/+1 |
| | | |||||
* | | Issue #16803: Move test_importlib.test_util to use both frozen and | Brett Cannon | 2013-10-18 | 2 | -50/+96 |
| | | | | | | | | source code. | ||||
* | | Issue #16803: Have test_importlib.test_locks use frozen and source | Brett Cannon | 2013-10-18 | 1 | -21/+48 |
| | | | | | | | | code. | ||||
* | | Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd | Brett Cannon | 2013-10-18 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and stop importlib.machinery.FileFinder treating '' as '.'. Previous PathFinder transformed '' into '.' which led to __file__ for modules imported from the cwd to always be relative paths. This meant the values of the attribute were wrong as soon as the cwd changed. This change now means that as long as the site module is run (which makes all entries in sys.path absolute) then all values for __file__ will also be absolute unless it's for __main__ when specified by file path in a relative way (modules imported by runpy will have an absolute path). Now that PathFinder is no longer treating '' as '.' it only makes sense for FileFinder to stop doing so as well. Now no transformation is performed for the directory given to the __init__ method. Thanks to Madison May for the initial patch. | ||||
* | | Issue #16803: test.test_importlib.test_api now runs under frozen and | Brett Cannon | 2013-10-18 | 1 | -37/+69 |
| | | | | | | | | source. | ||||
* | | [issue 19152] Ensure we have actually registered ExtensionFileLoader as an ↵ | Eric Snow | 2013-10-05 | 1 | -0/+1 |
| | | | | | | | | ExecutionLoader. | ||||
* | | Issue #16803: Run test.test_importlib.test_abc under both | Brett Cannon | 2013-10-04 | 2 | -120/+308 |
| | | | | | | | | _frozen_importlib and source. | ||||
* | | Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py script | Serhiy Storchaka | 2013-09-16 | 1 | -3/+3 |
|\ \ | |/ | | | | | now detect Python source code encoding only in comment lines. | ||||
| * | Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py script | Serhiy Storchaka | 2013-09-16 | 1 | -3/+3 |
| | | | | | | | | now detect Python source code encoding only in comment lines. | ||||
* | | Issue #16826: Revert fix while Windows issues are being worked out. | Meador Inge | 2013-09-04 | 2 | -86/+18 |
|\ \ | |/ | |||||
| * | Issue #16826: Revert fix while Windows issues are being worked out. | Meador Inge | 2013-09-04 | 2 | -86/+18 |
| | | |||||
* | | Issue #16826: Don't check for PYTHONCASEOK when using -E. | Meador Inge | 2013-09-03 | 2 | -18/+86 |
|\ \ | |/ | | | | | | | This commit fixes a regression that sneaked into Python 3.3 where importlib was not respecting -E when checking for the PYTHONCASEOK environment variable. | ||||
| * | Issue #16826: Don't check for PYTHONCASEOK when using -E. | Meador Inge | 2013-09-03 | 2 | -18/+86 |
| | | | | | | | | | | This commit fixes a regression that sneaked into Python 3.3 where importlib was not respecting -E when checking for the PYTHONCASEOK environment variable. | ||||
* | | Closes issue #18698: ensure importlib.reload() returns the module out of ↵ | Eric Snow | 2013-08-15 | 1 | -0/+16 |
| | | | | | | | | sys.modules. |