Brett Cannon
7c08b19f86
Issue #19714 : Tests for importlib.machinery.WindowsRegistryFinder.
...
Patch by Claudiu Popa, review by Martin v. Löwis.
2014-08-22 10:28:42 -04:00
Zachary Ware
f886697659
Closes #22002 : Merge with 3.4
2014-07-23 12:06:47 -05:00
Zachary Ware
f012ba42fe
Issue #22002 : Make full use of test discovery in test sub-packages.
...
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.
2014-07-23 12:00:29 -05:00
Serhiy Storchaka
f2c4ba1207
Issue #19593 : Use specific asserts in importlib tests.
2014-07-07 14:09:43 +03:00
Serhiy Storchaka
344f8316fd
Issue #19593 : Use specific asserts in importlib tests.
2014-07-07 14:08:19 +03:00
Berker Peksag
f7eaa0c63c
Issue #21755 : Skip {Frozen,Source}_DeadlockAvoidanceTests tests when
...
Python is built without threads.
2014-07-03 06:25:10 +03:00
Brett Cannon
2a17bde930
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.
2014-05-30 14:55:29 -04:00
Raymond Hettinger
62f4dad816
Issue 21137: Better repr for threading.Lock()
2014-05-25 18:22:35 -07:00
Eric Snow
3497c0bf95
Issue #21503 : Use test_both() consistently in test_importlib.
2014-05-16 11:40:40 -06:00
Eric Snow
d50cee2045
Fix a small typo in test_importlib.
2014-05-16 11:22:05 -06:00
Eric Snow
e1c9e5270a
Merge from 3.4 (for #21499 ).
2014-05-13 12:18:07 -06:00
Eric Snow
2f46a0e8be
Issue #21499 : Ignore __builtins__ in several test_importlib.test_api tests.
2014-05-13 12:15:42 -06:00
Brett Cannon
732ac654c8
Issue #19721 : Consolidate test_importlib utility code into a single
...
module.
2014-05-09 14:32:57 -04:00
Brett Cannon
91795c8e34
Issue #20776 : Flesh out tests for importlib.machinery.PathFinder.
2014-05-09 13:38:11 -04:00
Brett Cannon
a04dbe4fe7
Issue #17621 : Introduce importlib.util.LazyLoader.
2014-04-04 13:53:38 -04:00
Eric Snow
f269cc6b14
Issue #21097 : Move test_namespace_pkgs into test_importlib.
2014-03-29 15:57:44 -06:00
Eric Snow
c4bbd7a492
Issue #21097 : Move test_namespace_pkgs into test_importlib.
2014-03-29 15:57:44 -06:00
Benjamin Peterson
85736a7d2c
merge 3.3 ( #20796 )
2014-02-27 13:50:28 -05:00
Benjamin Peterson
3673670b67
fix importlib test failure when bytecode writing is disabled ( closes #20796 )
...
Patch by Berker Peksag.
2014-02-27 13:49:34 -05:00
Brett Cannon
d3acef9bf4
Issue #20763 : Fix importlib.machinery.PathFinder to support
...
PathEntryFinder instances which only define find_module().
Reported by Yukihiro Nakadaira.
2014-02-26 18:26:49 -05:00
Eric Snow
6029e08691
Issue 19944: Fix importlib.find_spec() so it imports parents as needed.
...
The function is also moved to importlib.util.
2014-01-25 15:32:46 -07:00
Brett Cannon
8d942296bb
Issue #19719 : Update various finder and loader ABCs such that their
...
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.
2014-01-07 15:52:42 -05:00
Eric Snow
1500d49c22
Issue 19713: Add PEP 451-related deprecations.
2014-01-06 20:49:04 -07:00
Eric Snow
3192eac6cf
Remove dead PEP 451 code.
2014-01-06 20:38:16 -07:00
Eric Snow
d749c7ae68
Issue #19927 : Add __eq__ to path-based loaders in importlib.
2014-01-04 15:06:49 -07:00
Eric Snow
fbc785188d
Issue #20097 : Fix bad use of "self" in importlib's WindowsRegistryFinder.
2014-01-02 22:25:00 -07:00
Eric Snow
b282b3d804
Issue #18864 : Add a setter for ModuleSpec.has_location.
2013-12-10 22:16:41 -07:00
Eric Snow
e3c39ddd97
Remove commented-out module spec test code and an out-of-date note.
2013-12-09 20:33:33 -07:00
Eric Snow
c1e7c747f9
Issue 19851: Fix a regression in reloading submodules.
2013-12-09 19:59:10 -07:00
Eric Snow
5c29424f4b
Issue #19758 : silence PendingDeprecationWarnings in test_importlib.
2013-12-07 19:37:31 -07:00
Brett Cannon
2f8c83568c
Issue #19712 : Update test.test_importlib.source for PEP 451
2013-12-06 14:25:01 -05:00
Brett Cannon
86aae6a7b3
Issue #19712 : Update test.test_importlib.import_ to test/use PEP 451
...
where appropriate.
2013-12-06 12:07:25 -05:00
Brett Cannon
ed05b8a1a1
Issue #19712 : Port test.test_importlib.import_ tests to use PEP 451
...
that don't require changing test.test_importlib.util.mock_modules().
2013-11-29 16:17:05 -05:00
Brett Cannon
d2476c6e4b
Issue #19698 : Remove exec_module() from the built-in and extension
...
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.
2013-11-29 11:00:11 -05:00
Brett Cannon
873d1226b7
Make test_importlib output easier to trace back to the failing test
...
class.
2013-11-22 14:47:09 -05:00
Brett Cannon
e0c3bd78c5
Issue #18864 : Don't try and use unittest as a testing module for
...
built-in loading; leads to a reload scenario where attributes get set
which are wrong after the test.
2013-11-22 14:38:09 -05:00
Eric Snow
b523f8433a
Implement PEP 451 (ModuleSpec).
2013-11-22 09:05:39 -07:00
Zachary Ware
4accf45f0e
Issue #19596 : Set untestable tests in test_importlib to None
...
to avoid reporting success on empty tests.
2013-11-18 21:44:38 -06:00
Brett Cannon
9ea8eda127
Issue #16803 : test.test_importlib.source now tests frozen and source code
2013-11-08 14:25:37 -05:00
Brett Cannon
2ce6c44ae4
Simplify test.test_importlib.__main__
2013-11-08 13:35:34 -05:00
Brett Cannon
330f71b617
Issue #16803 : test.test_importlib.import_ now tests frozen and source code
2013-11-08 13:34:59 -05:00
Brett Cannon
a3c6963467
Issue #16803 : test.test_importlib.frozen now runs both frozen and source code
2013-11-08 11:10:41 -05:00
Eric Snow
4ae17f50ed
Issue #19413 : Disregard duplicate namespace portions during reload tests.
2013-10-31 23:44:31 -06:00
Eric Snow
cdf601281f
Issue #19413 : Restore pre-3.3 reload() semantics of re-finding modules.
2013-10-31 22:22:15 -06:00
Brett Cannon
e38b0544c4
Issue #16803 : Move test.test_importlib.extension to use both frozen and source importlib code
2013-10-25 15:39:02 -04:00
Brett Cannon
ffd33c290b
Issue #16803 : Have test.test_importlib.builtin test both frozen and
...
source importlib.
2013-10-25 12:44:36 -04:00
Brett Cannon
b3d6afff2b
Issue #16803 : Stop having test.test_importlib.abc ABCs inherit from
...
unittest.TestCase in prep of running tests under frozen and source
importlib.
2013-10-25 12:33:59 -04:00
Eric Snow
0db06a1c42
[Issue #19357 ] Ensure module "loaded" during tests gets forgotten.
2013-10-22 23:46:53 -06:00
Eric Snow
776b888071
[Issue #19357 ] Ensure module "loaded" during tests gets forgotten.
2013-10-22 23:27:42 -06:00
Brett Cannon
c516815353
Fix test to not consider mixin a standalone test
2013-10-18 16:55:15 -04:00