summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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.
| * 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.
* | Issue #13645: pyc files now contain the size of the corresponding sourceAntoine Pitrou2012-01-131-1/+11
| | | | | | | | | | code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode.
* | Issue #13645: fix test_import failure when run immediately after test_coding.Antoine Pitrou2011-12-211-1/+2
|\ \ | |/
| * Issue #13645: fix test_import failure when run immediately after test_coding.Antoine Pitrou2011-12-211-1/+2
| |
* | Issue #13303: Fix bytecode file default permission.Charles-François Natali2011-11-101-10/+7
| |
* | Back out changeset b6336ba796d4 until fix for #13303.Charles-François Natali2011-11-081-3/+4
| |
* | test_import: test_execute_bit_not_copied() was actually a no-op: enable it.Charles-François Natali2011-11-081-4/+3
|\ \ | |/
| * test_import: test_execute_bit_not_copied() was actually a no-op: fix it.Charles-François Natali2011-11-081-4/+3
| |
* | os.geteuid() may not be available...Charles-François Natali2011-10-041-1/+1
|\ \ | |/
| * os.geteuid() may not be available...Charles-François Natali2011-10-041-1/+1
| |
* | Issue #11956: Always skip test_import.test_unwritable_directory when run asCharles-François Natali2011-10-041-2/+2
|\ \ | |/ | | | | root, since the semantics varies across Unix variants.
| * Issue #11956: Always skip test_import.test_unwritable_directory when run asCharles-François Natali2011-10-041-2/+2
| | | | | | | | root, since the semantics varies across Unix variants.
* | Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run asCharles-François Natali2011-10-041-0/+3
|\ \ | |/ | | | | root (directory permissions are ignored).
| * Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run asCharles-François Natali2011-10-041-0/+3
| | | | | | | | root (directory permissions are ignored).
* | Merge 3.2: Issue #7732: Don't open a directory as a file anymore whileVictor Stinner2011-09-231-0/+9
|\ \ | |/ | | | | | | importing a module. Ignore the direcotry if its name matchs the module name (e.g. "__init__.py") and raise a ImportError instead.
| * Issue #7732: Don't open a directory as a file anymore while importing aVictor Stinner2011-09-231-0/+9
| | | | | | | | | | module. Ignore the direcotry if its name matchs the module name (e.g. "__init__.py") and raise a ImportError instead.
* | Issue #12451: Add support.create_empty_file()Victor Stinner2011-06-301-2/+2
| | | | | | | | | | | | | | We don't need to create a temporary buffered binary or text file object just to create an empty file. Replace also os.fdopen(handle).close() by os.close(handle).
* | Try to make test_import a bit more robustAntoine Pitrou2011-03-211-0/+3
|\ \ | |/
| * Try to make test_import a bit more robustAntoine Pitrou2011-03-211-0/+3
| |
* | Remove an overly specific exception message test.Brett Cannon2011-03-171-2/+0
|/
* #4236: avoid possible Fatal Error when import is called from __del__R. David Murray2010-12-141-0/+13
| | | | Patch by Simon Cross, crasher test code by Martin von Löwis.
* close open file from find_module()Benjamin Peterson2010-10-301-0/+1
|
* condenseBenjamin Peterson2010-10-301-5/+1
|
* kill pointless function importsBenjamin Peterson2010-10-301-1/+0
|
* remove useless assignmentBenjamin Peterson2010-10-301-1/+1
|
* Better check for "any optimize option given".Georg Brandl2010-10-141-1/+1
|
* #9964: fix running test_import under -O or -OO.Georg Brandl2010-10-141-1/+2
|
* I get it wrong in r84097: s/relative/absolute/Florent Xicluna2010-08-161-1/+2
|