Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new ↵ | Antoine Pitrou | 2012-02-20 | 1 | -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 Pitrou | 2012-01-25 | 1 | -1/+1 |
|\ | |||||
| * | Port import fixes from 2.7. | Antoine Pitrou | 2012-01-25 | 1 | -1/+1 |
| | | |||||
* | | Port remaining test fixes, and fix test_importlib too. | Antoine Pitrou | 2012-01-25 | 1 | -8/+21 |
|\ \ | |/ | |||||
| * | Port remaining test fixes, and fix test_importlib too. | Antoine Pitrou | 2012-01-25 | 1 | -0/+5 |
| | | |||||
| * | Make test work under 32-bit systems, and when invoked through ↵ | Antoine Pitrou | 2012-01-25 | 1 | -8/+16 |
| | | | | | | | | | | | | Lib/test/regrtest.py (rather than `-m test.regrtest`) | ||||
* | | Issue #11235: Fix OverflowError when trying to import a source file whose ↵ | Antoine Pitrou | 2012-01-24 | 1 | -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 Pitrou | 2012-01-24 | 1 | -0/+12 |
| | | | | | | | | modification time doesn't fit in a 32-bit timestamp. | ||||
* | | Issue #13645: pyc files now contain the size of the corresponding source | Antoine Pitrou | 2012-01-13 | 1 | -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 Pitrou | 2011-12-21 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Issue #13645: fix test_import failure when run immediately after test_coding. | Antoine Pitrou | 2011-12-21 | 1 | -1/+2 |
| | | |||||
* | | Issue #13303: Fix bytecode file default permission. | Charles-François Natali | 2011-11-10 | 1 | -10/+7 |
| | | |||||
* | | Back out changeset b6336ba796d4 until fix for #13303. | Charles-François Natali | 2011-11-08 | 1 | -3/+4 |
| | | |||||
* | | test_import: test_execute_bit_not_copied() was actually a no-op: enable it. | Charles-François Natali | 2011-11-08 | 1 | -4/+3 |
|\ \ | |/ | |||||
| * | test_import: test_execute_bit_not_copied() was actually a no-op: fix it. | Charles-François Natali | 2011-11-08 | 1 | -4/+3 |
| | | |||||
* | | os.geteuid() may not be available... | Charles-François Natali | 2011-10-04 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | os.geteuid() may not be available... | Charles-François Natali | 2011-10-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #11956: Always skip test_import.test_unwritable_directory when run as | Charles-François Natali | 2011-10-04 | 1 | -2/+2 |
|\ \ | |/ | | | | | root, since the semantics varies across Unix variants. | ||||
| * | Issue #11956: Always skip test_import.test_unwritable_directory when run as | Charles-François Natali | 2011-10-04 | 1 | -2/+2 |
| | | | | | | | | root, since the semantics varies across Unix variants. | ||||
* | | Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as | Charles-François Natali | 2011-10-04 | 1 | -0/+3 |
|\ \ | |/ | | | | | root (directory permissions are ignored). | ||||
| * | Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as | Charles-François Natali | 2011-10-04 | 1 | -0/+3 |
| | | | | | | | | root (directory permissions are ignored). | ||||
* | | Merge 3.2: Issue #7732: Don't open a directory as a file anymore while | Victor Stinner | 2011-09-23 | 1 | -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 a | Victor Stinner | 2011-09-23 | 1 | -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 Stinner | 2011-06-30 | 1 | -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 robust | Antoine Pitrou | 2011-03-21 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | Try to make test_import a bit more robust | Antoine Pitrou | 2011-03-21 | 1 | -0/+3 |
| | | |||||
* | | Remove an overly specific exception message test. | Brett Cannon | 2011-03-17 | 1 | -2/+0 |
|/ | |||||
* | #4236: avoid possible Fatal Error when import is called from __del__ | R. David Murray | 2010-12-14 | 1 | -0/+13 |
| | | | | Patch by Simon Cross, crasher test code by Martin von Löwis. | ||||
* | close open file from find_module() | Benjamin Peterson | 2010-10-30 | 1 | -0/+1 |
| | |||||
* | condense | Benjamin Peterson | 2010-10-30 | 1 | -5/+1 |
| | |||||
* | kill pointless function imports | Benjamin Peterson | 2010-10-30 | 1 | -1/+0 |
| | |||||
* | remove useless assignment | Benjamin Peterson | 2010-10-30 | 1 | -1/+1 |
| | |||||
* | Better check for "any optimize option given". | Georg Brandl | 2010-10-14 | 1 | -1/+1 |
| | |||||
* | #9964: fix running test_import under -O or -OO. | Georg Brandl | 2010-10-14 | 1 | -1/+2 |
| | |||||
* | I get it wrong in r84097: s/relative/absolute/ | Florent Xicluna | 2010-08-16 | 1 | -1/+2 |
| | |||||
* | Use test.support and unittest features. Fix duplicated test (bad merge in ↵ | Florent Xicluna | 2010-08-16 | 1 | -26/+9 |
| | | | | r79033). Fix comment for issue #7902. | ||||
* | Issue #9425: skip tests if a filename is not encodable | Victor Stinner | 2010-08-07 | 1 | -0/+5 |
| | |||||
* | Stop shadowing a test class. | Brett Cannon | 2010-07-23 | 1 | -2/+2 |
| | |||||
* | Explicitly test relative imports by reusing importlib tests. | Brett Cannon | 2010-07-23 | 1 | -1/+14 |
| | | | | Closes issue 8392. Thanks Virgil Dupras for the initial patch. | ||||
* | Make test_import a little bit more robust for cleaning up after itself in the | Brett Cannon | 2010-07-03 | 1 | -6/+8 |
| | | | | face of a failure. | ||||
* | Merged revisions 81380 via svnmerge from | Benjamin Peterson | 2010-06-27 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81380 | brett.cannon | 2010-05-20 13:37:55 -0500 (Thu, 20 May 2010) | 8 lines Turned out that if you used explicit relative import syntax (e.g. from .os import sep) and it failed, import would still try the implicit relative import semantics of an absolute import (from os import sep). That's not right, so when level is negative, only do explicit relative import semantics. Fixes issue #7902. Thanks to Meador Inge for the patch. ........ | ||||
* | Repair test failure. Bug 8727. | Barry Warsaw | 2010-05-18 | 1 | -1/+0 |
| | |||||
* | Make test_module_with_large_stack as an expected failure because of a change in | Brett Cannon | 2010-05-15 | 1 | -0/+1 |
| | | | | | importlib that is causing it to fail. Work to fix it is being tracked in issue 8727. | ||||
* | Fix a comment to state the right thing. | Brett Cannon | 2010-05-15 | 1 | -4/+3 |
| | |||||
* | A test was not guaranteeing cleanup in the face of an exception. | Brett Cannon | 2010-05-15 | 1 | -7/+8 |
| | |||||
* | PEP 3147 | Barry Warsaw | 2010-04-17 | 1 | -30/+176 |
| | |||||
* | Merged revisions 79030-79032 via svnmerge from | Florent Xicluna | 2010-03-17 | 1 | -50/+59 |
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79030 | florent.xicluna | 2010-03-17 20:05:04 +0100 (mer, 17 mar 2010) | 2 lines Cleanup in test_import and test_coding. ........ r79031 | florent.xicluna | 2010-03-17 20:15:56 +0100 (mer, 17 mar 2010) | 2 lines Cleanup some test cases using check_warnings and check_py3k_warnings. ........ r79032 | florent.xicluna | 2010-03-17 21:05:11 +0100 (mer, 17 mar 2010) | 2 lines Fix and check cgi module deprecation warnings. Revert an unwanted rename in test_import. ........ | ||||
* | Add tests for overriding and shadowing __import__; these are a useful ↵ | Collin Winter | 2010-03-17 | 1 | -2/+24 |
| | | | | tripwire for an incoming JIT optimization. | ||||
* | Merged revisions 79016 via svnmerge from | Collin Winter | 2010-03-17 | 1 | -54/+59 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79016 | collin.winter | 2010-03-16 19:40:12 -0700 (Tue, 16 Mar 2010) | 1 line Style cleanup in test_import. ........ | ||||
* | use assert[Not]In where appropriate | Benjamin Peterson | 2010-01-19 | 1 | -2/+2 |
| | | | | A patch from Dave Malcolm. |