summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/extension
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145)Marcel Plch2018-05-281-7/+13
|
* bpo-33629: Prevent coredump in test_importlib (GH-7090)Victor Stinner2018-05-241-1/+4
| | | | | bpo-32374, bpo-33629: Use support.SuppressCrashReport() in test_bad_traverse() of MultiPhaseExtensionModuleTests to prevent leaking a core dump file.
* bpo-32374: m_traverse may be called with m_state=NULL (GH-5140)Marcel Plch2018-03-171-1/+15
| | | | | Multi-phase initialized modules allow m_traverse to be called while the module is still being initialized, so module authors may need to account for that.
* Merge #27782 fix from 3.5Nick Coghlan2016-08-211-0/+9
|\
| * Issue #27782: Fix m_methods handling in multiphase initNick Coghlan2016-08-211-0/+9
| | | | | | | | | | | | | | | | Multi-phase extension module import now correctly allows the ``m_methods`` field to be used to add module level functions to instances of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.
* | Merge for #27083Brett Cannon2016-07-161-8/+6
|\ \ | |/
| * Fix regressions introduced by fixes for issue #27083.Brett Cannon2016-07-161-8/+6
| |
* | Issue #21099: Switch applicable importlib tests to use PEP 451 API.Eric Snow2016-05-102-3/+0
| |
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
| |
* | Issue #23277: Remove unused sys and os importsBerker Peksag2016-04-242-2/+0
|/ | | | Patch by Jon Dufresne.
* use assert method in another placeBenjamin Peterson2015-05-301-1/+1
|
* use assert method (#24328)Benjamin Peterson2015-05-291-1/+1
|
* fix importing one char extension modules (closes #24328)Benjamin Peterson2015-05-291-0/+8
|
* Issue #24285: fix importing extensions from packagesNick Coghlan2015-05-261-0/+7
|
* PEP 489: Multi-phase extension module initializationNick Coghlan2015-05-231-0/+167
| | | | | | | | | | | | | | | | | | | | | | | Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles.
* Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow2015-05-031-3/+3
|
* Closes #22002: Merge with 3.4Zachary Ware2014-07-232-12/+8
|\
| * Issue #22002: Make full use of test discovery in test sub-packages.Zachary Ware2014-07-232-12/+8
| | | | | | | | | | | | 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 #21503: Use test_both() consistently in test_importlib.Eric Snow2014-05-164-10/+16
| |
* | Issue #19721: Consolidate test_importlib utility code into a singleBrett Cannon2014-05-095-50/+27
|/ | | | module.
* Issue 19713: Add PEP 451-related deprecations.Eric Snow2014-01-071-1/+4
|
* Issue #19927: Add __eq__ to path-based loaders in importlib.Eric Snow2014-01-041-0/+9
|
* Issue #19698: Remove exec_module() from the built-in and extensionBrett Cannon2013-11-291-65/+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.
* Implement PEP 451 (ModuleSpec).Eric Snow2013-11-223-22/+81
|
* Issue #16803: Move test.test_importlib.extension to use both frozen and ↵Brett Cannon2013-10-254-44/+44
| | | | source importlib code
* Issue #16803: Stop having test.test_importlib.abc ABCs inherit fromBrett Cannon2013-10-252-2/+2
| | | | | unittest.TestCase in prep of running tests under frozen and source importlib.
* Issue #16826: Revert fix while Windows issues are being worked out.Meador Inge2013-09-041-29/+8
|\
| * Issue #16826: Revert fix while Windows issues are being worked out.Meador Inge2013-09-041-29/+8
| |
* | Issue #16826: Don't check for PYTHONCASEOK when using -E.Meador Inge2013-09-031-8/+29
|\ \ | |/ | | | | | | 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 Inge2013-09-031-8/+29
| | | | | | | | | | 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 #17177: stop using imp in test_importlibBrett Cannon2013-06-153-6/+5
|/
* Issue #15576: Allow extension modules to be a package's __init__Brett Cannon2012-08-104-17/+20
| | | | | module again. Also took the opportunity to stop accidentally exporting _imp.extension_suffixes() as public.
* Issue #15168: Move importlb.test to test.test_importlib.Brett Cannon2012-07-206-0/+237
This should make the Linux distros happy as it is now easier to leave importlib's tests out of their base Python distribution.