summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
Commit message (Collapse)AuthorAgeFilesLines
* #11420: merge with 3.2.Ezio Melotti2013-03-161-0/+13
|\
| * #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch ↵Ezio Melotti2013-03-161-0/+13
| | | | | | | | by Thomas Wouters.
| * Fix broken test and replace redundant generator with a tupleNick Coghlan2012-10-191-9/+13
| |
| * Issue #6074: Actually delete the source file in the test as intendedNick Coghlan2012-10-191-1/+1
| |
| * Issue #6074: Forward port Windows read-only source file fix from 2.7Nick Coghlan2012-10-191-5/+51
| |
* | Remove unused importNick Coghlan2012-10-191-1/+0
| |
* | Issue #6074: Apply an appropriate fix for importlib based importsNick Coghlan2012-10-191-49/+107
| |
* | merge 3.2Benjamin Peterson2012-09-251-1/+1
|\ \ | |/
| * use modern conditional syntaxBenjamin Peterson2012-09-251-1/+1
| |
* | Issue #15828: Restore support for C extension modules in imp.load_module()Nick Coghlan2012-08-311-19/+0
| |
* | Close #2501: Permission bits are once again correctly copied from the source ↵Nick Coghlan2012-08-241-1/+24
| | | | | | | | file to the cached bytecode file. Test by Eric Snow.
* | Issue #15715: Ignore failed imports triggered by the use of fromlist.Brett Cannon2012-08-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | When the fromlist argument is specified for __import__() and the attribute doesn't already exist, an import is attempted. If that fails (e.g. module doesn't exist), the ImportError will now be silenced (for backwards-compatibility). This *does not* affect ``from ... import ...`` statements. Thanks to Eric Snow for the patch and Simon Feltman for reporting the regression.
* | Issue #15425: Don't rely on the assumption that the current working ↵Nick Coghlan2012-07-311-7/+5
| | | | | | | | directory is on sys.path (this will hopefully appease the XP buildbots)
* | Close #15486: Simplify the mechanism used to remove importlib frames from ↵Nick Coghlan2012-07-311-2/+4
| | | | | | | | tracebacks when they just introduce irrelevant noise
* | Close #15425: Eliminate more importlib related traceback noiseNick Coghlan2012-07-291-0/+68
| |
* | Restored test by specifying that the symlink links to a target (currently ↵Jason R. Coombs2012-07-261-3/+2
| | | | | | | | required for Windows symlinks). See issue15093 for details.
* | Fix an import from the importlib.test move.Brett Cannon2012-07-201-1/+1
| |
* | Issue #15091: Call importlib.invalidate_caches() and reactivate a testBrett Cannon2012-07-201-27/+15
| | | | | | | | of importing a symlinked package.
* | Running the importlib tests from test_import is redundant as there isBrett Cannon2012-07-201-13/+6
| | | | | | | | no difference anymore between __import__ and importlib.__import__.
* | Close #15386: There was a loophole that meant importlib.machinery and imp ↵Nick Coghlan2012-07-201-1/+11
| | | | | | | | would sometimes reference an uninitialised copy of importlib._bootstrap
* | Issue #15338: skip test_UNC_path when the current user doesn't have enough ↵Antoine Pitrou2012-07-131-11/+14
|\ \ | |/ | | | | permissions to access the path.
| * Issue #15338: skip test_UNC_path when the current user doesn't have enough ↵Antoine Pitrou2012-07-131-0/+7
| | | | | | | | permissions to access the path.
* | For diagnosis, try to list the directory firstAntoine Pitrou2012-07-121-0/+1
| |
* | Small improvements to test_unc_pathAntoine Pitrou2012-07-121-7/+8
| |
* | Try to fix or diagnose buildbot failuresAntoine Pitrou2012-07-121-1/+6
| |
* | Fix test failure under WindowsAntoine Pitrou2012-07-081-1/+1
| |
* | Issue #15110: Fix the tracebacks generated by "import xxx" to not show the ↵Antoine Pitrou2012-07-081-0/+93
| | | | | | | | importlib stack frames.
* | Properly cleanup pep3147 modules in test_importAntoine Pitrou2012-06-231-4/+4
| |
* | Prefer assertEqual to simply assert per recommendation in issue6727.Jason R. Coombs2012-06-201-3/+8
| | | | | | | | Clarified comment on disabled code to reference issue15093.
* | Issue #14657: The frozen instance of importlib used for bootstrap is now ↵Antoine Pitrou2012-06-171-1/+19
| | | | | | | | also the module imported as importlib._bootstrap.
* | Disable test on Unix. Causes buildbots to fail. See Issue #15091Jason R. Coombs2012-06-171-0/+4
| |
* | Adding test from issue6727 demonstrating that symlink import issue does not ↵Jason R. Coombs2012-06-171-0/+53
| | | | | | | | occur here in 3.3
* | issue 14660: Implement PEP 420, namespace packages.Eric V. Smith2012-05-251-6/+0
| |
* | Issue #14637: Fix the UNC import test under Windows to actually useBrett Cannon2012-04-211-4/+8
| | | | | | | | | | | | the UNC path. Also clean up sys.path and invalidate finder caches. Thanks to Vinay Sajip for spotting the use of the wrong path.
* | Fix a cleanup.Brett Cannon2012-04-201-1/+1
| |
* | Use a skipUnless decorator instead of conditional renaming.Brett Cannon2012-04-201-3/+1
| |
* | Issue #14585: test_import now runs all tests underBrett Cannon2012-04-201-15/+10
| | | | | | | | | | importlib.test.import_ using builtins.__import__() instead of just the relative import tests.
* | Issue #14599: Generalize a test for ImportError.path and add supportBrett Cannon2012-04-201-22/+0
| | | | | | | | | | | | | | in Python/dynload_shlibs.c. This should fix the remaining importlib test failure on Windows. Support in AIX and HP-UX will be in a separate checkin.
* | Try to debug a Windows failure on the buildbots.Brett Cannon2012-04-201-1/+4
| |
* | Issue #14599: Fix an import caching race condition.Brett Cannon2012-04-171-0/+1
| |
* | Fix #10854. Make use of the new path and name attributes on ImportErrorBrian Curtin2012-04-161-0/+18
| | | | | | | | for extension modules on Windows.
* | Try to fix a sporadic test failure from what is probably a caching race ↵Brett Cannon2012-04-141-0/+1
| | | | | | | | condition.
* | Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-1/+6
| | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* | Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new ↵Antoine Pitrou2012-02-201-0/+8
| | | | | | | | | | | | importlib.invalidate_caches() function. importlib is now often faster than imp.find_module() at finding modules.
* | Port import fixes from 2.7.Antoine Pitrou2012-01-251-1/+1
|\ \ | |/
| * Port import fixes from 2.7.Antoine Pitrou2012-01-251-1/+1
| |
* | Port remaining test fixes, and fix test_importlib too.Antoine Pitrou2012-01-251-8/+21
|\ \ | |/
| * Port remaining test fixes, and fix test_importlib too.Antoine Pitrou2012-01-251-0/+5
| |
| * Make test work under 32-bit systems, and when invoked through ↵Antoine Pitrou2012-01-251-8/+16
| | | | | | | | | | | | Lib/test/regrtest.py (rather than `-m test.regrtest`)
* | Issue #11235: Fix OverflowError when trying to import a source file whose ↵Antoine Pitrou2012-01-241-0/+12
|\ \ | |/ | | | | modification time doesn't fit in a 32-bit timestamp.