Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update importlib.invalidate_caches() to be more general. | Brett Cannon | 2012-02-27 | 2 | -0/+35 |
| | |||||
* | Make the benchmark recording more sensible for importlib.test.benchmark. | Brett Cannon | 2012-02-24 | 1 | -29/+27 |
| | |||||
* | Improper type for __package__ should raise TypeError, not ValueError. | Brett Cannon | 2012-02-23 | 1 | -1/+1 |
| | |||||
* | Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new ↵ | Antoine Pitrou | 2012-02-20 | 1 | -2/+2 |
| | | | | | | importlib.invalidate_caches() function. importlib is now often faster than imp.find_module() at finding modules. | ||||
* | Fix importlib.test.__main__ to only worry about command-line flags when ↵ | Brett Cannon | 2012-02-17 | 1 | -8/+9 |
| | | | | directly executed. | ||||
* | Have importlib.test use argparse instead of some hacked up solution. | Brett Cannon | 2012-02-17 | 1 | -3/+8 |
| | |||||
* | Tweak the handling of the empty string in sys.path for importlib. | Brett Cannon | 2012-02-16 | 1 | -1/+1 |
| | | | | | | | It seems better to cache the finder for the cwd under its full path insetad of '' in case the cwd changes. Otherwise FileFinder needs to dynamically change itself based on whether it is given '' instead of caching a finder for every change to the cwd. | ||||
* | importlib.__import__() now raises ValueError when level < 0. | Brett Cannon | 2012-02-16 | 1 | -0/+7 |
| | | | | | This is to bring it more in line with what PEP 328 set out to do with removing ambiguous absolute/relative import semantics. | ||||
* | Use the cwd when the empty string is found in sys.path. This leads to | Brett Cannon | 2012-02-08 | 1 | -0/+10 |
| | | | | | __file__ being an absolute path when the module is found in the current directory. | ||||
* | Re-order importlib benchmarks to be consistent. Also print out what ↵ | Brett Cannon | 2012-02-07 | 1 | -6/+8 |
| | | | | implementation of __import__ is used. | ||||
* | Have importlib.test.benchmark test with tabnanny as a medium-sized test. | Brett Cannon | 2012-02-07 | 1 | -32/+58 |
| | |||||
* | Fix a minor output typo as found by Terry Reedy. | Brett Cannon | 2012-01-31 | 1 | -1/+1 |
| | |||||
* | Let importlib.test.benchmark take a specific benchmark name to run. | Brett Cannon | 2012-01-31 | 1 | -3/+18 |
| | |||||
* | Allow for the specification of a file to dump importlib benchmark | Brett Cannon | 2012-01-31 | 1 | -10/+36 |
| | | | | | | results to (and to compare against previous runs). * * * Move importlib.test.benchmark to argparse. | ||||
* | Issue #13890: Also fix for extension module tests for case-insensitivity. | Brett Cannon | 2012-01-30 | 1 | -0/+6 |
| | |||||
* | Issue #13890: Fix importlib case-sensitivity tests to not run on Windows. | Brett Cannon | 2012-01-30 | 1 | -0/+6 |
| | | | | | | | Thanks to os.environ under Windows only updating the dict and not the environment itself (as exposed by nt.environ), tests using PYTHONCASEOK always fail. Now the tests are skipped when os.environ does not do what is expected. | ||||
* | Move some code from importlib.__init__ to importlib._bootstrap that | Brett Cannon | 2012-01-25 | 1 | -4/+4 |
| | | | | does not need to be exposed from C code for bootstrapping reasons. | ||||
* | 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 | -1/+9 |
|\ \ | |/ | |||||
| * | Port remaining test fixes, and fix test_importlib too. | Antoine Pitrou | 2012-01-25 | 1 | -1/+9 |
| | | |||||
* | | Issue #11235: Fix OverflowError when trying to import a source file whose ↵ | Antoine Pitrou | 2012-01-24 | 1 | -0/+17 |
|\ \ | |/ | | | | | 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/+17 |
| | | | | | | | | modification time doesn't fit in a 32-bit timestamp. | ||||
* | | kill useless import added by 87331661042b | Benjamin Peterson | 2012-01-16 | 1 | -1/+0 |
| | | |||||
* | | Issue #13645: pyc files now contain the size of the corresponding source | Antoine Pitrou | 2012-01-13 | 2 | -15/+39 |
| | | | | | | | | | | code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode. | ||||
* | | Fix no-op tests in importlib. | Antoine Pitrou | 2011-12-30 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Fix no-op tests in importlib. | Antoine Pitrou | 2011-12-30 | 1 | -0/+4 |
| | | |||||
* | | Issue #13593: updating the importlib utility decorators for __qualname__. | Meador Inge | 2011-12-15 | 1 | -0/+10 |
| | | |||||
* | | Issue #13591: import_module potentially imports a module twice. | Meador Inge | 2011-12-15 | 2 | -1/+23 |
|\ \ | |/ | |||||
| * | Issue #13591: import_module potentially imports a module twice. | Meador Inge | 2011-12-15 | 2 | -1/+23 |
| | | |||||
* | | Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's ↵ | Florent Xicluna | 2011-12-10 | 1 | -2/+2 |
| | | | | | | | | DeprecationWarning (cgi, importlib, nntplib, smtpd). | ||||
* | | Closes #12291 for 3.3 - merged fix from 3.2. | Vinay Sajip | 2011-07-02 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Closes #12291: Fixed bug which was found when doing multiple loads from one ↵ | Vinay Sajip | 2011-07-02 | 1 | -1/+1 |
| | | | | | | | | stream. | ||||
* | | Kill dead code in importlib.test.__main__ (#12019, reviewed by Brett Cannon) | Éric Araujo | 2011-06-07 | 1 | -6/+1 |
| | | |||||
* | | (Merge 3.2) Issue #11614: Fix importlib tests for the new __hello__ module | Victor Stinner | 2011-05-16 | 1 | -9/+17 |
|\ \ | |/ | |||||
| * | (Merge 3.1) Issue #11614: Fix importlib tests for the new __hello__ module | Victor Stinner | 2011-05-16 | 1 | -9/+17 |
| |\ | |||||
| | * | Issue #11614: Fix importlib tests for the new __hello__ module | Victor Stinner | 2011-05-16 | 1 | -9/+17 |
| | | | |||||
| | * | Merged revisions 86596 via svnmerge from | Ezio Melotti | 2010-11-21 | 4 | -23/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........ | ||||
| | * | Merged revisions 78242 via svnmerge from | Brett Cannon | 2010-02-19 | 1 | -24/+99 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78242 | brett.cannon | 2010-02-19 11:01:06 -0500 (Fri, 19 Feb 2010) | 5 lines Importlib was not matching import's handling of .pyc files where it had less then 8 bytes total in the file. Fixes issues 7361 & 7875. ........ | ||||
| | * | Merged revisions 76146 via svnmerge from | Brett Cannon | 2009-11-07 | 1 | -0/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76146 | brett.cannon | 2009-11-07 15:55:05 -0800 (Sat, 07 Nov 2009) | 6 lines When trying to write new bytecode, importlib was not catching the IOError thrown if the file happened to be read-only to keep the failure silent. Fixes issue #7187. Thanks, Dave Malcolm for the report and analysis of the problem. ........ | ||||
| | * | Merged revisions 76113-76114 via svnmerge from | Brett Cannon | 2009-11-05 | 1 | -13/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r76113 | brett.cannon | 2009-11-04 17:17:22 -0800 (Wed, 04 Nov 2009) | 3 lines importlib.test.source.util referenced variables in the 'finally' part of a try/finally which may not have been set. ........ r76114 | brett.cannon | 2009-11-04 17:26:57 -0800 (Wed, 04 Nov 2009) | 6 lines Use tempfile.mkdtemp() instead of tempfile.tempdir for where importlib places source files for tests. Allows for concurrent execution of the tests by preventing various executions from trampling each other. Closes issue #7248. ........ | ||||
| | * | Merged revisions 74584 via svnmerge from | Brett Cannon | 2009-08-30 | 1 | -4/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74584 | brett.cannon | 2009-08-29 20:47:36 -0700 (Sat, 29 Aug 2009) | 3 lines Have importlib raise ImportError if None is found in sys.modules. This matches current import semantics. ........ | ||||
| | * | Merged revisions 73715 via svnmerge from | Georg Brandl | 2009-08-13 | 18 | -84/+84 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........ | ||||
| | * | Merged revisions 74107 via svnmerge from | Brett Cannon | 2009-07-20 | 1 | -14/+61 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74107 | brett.cannon | 2009-07-19 20:19:18 -0700 (Sun, 19 Jul 2009) | 8 lines Importlib's documentation said that importlib.abc.PyLoader inherited from importlib.abc.ResourceLoader, when in fact it did not. Fixed the ABC to inherit as documented. This does in introduce an backwards-incompatiblity as the code in PyLoader already required the single method ResourceLoader defined as an abstract method. ........ | ||||
| | * | Backport of r74103. | Brett Cannon | 2009-07-20 | 1 | -8/+8 |
| | | | |||||
* | | | Remove a stale comment. | Brett Cannon | 2011-03-24 | 1 | -7/+0 |
|/ / | |||||
* | | #9424: Replace deprecated assert* methods in the Python test suite. | Ezio Melotti | 2010-11-20 | 4 | -23/+23 |
| | | |||||
* | | Make sure that no __pycache__ directory is needlessly left behind when testing | Brett Cannon | 2010-08-22 | 1 | -7/+10 |
| | | | | | | | | imports with an empty string in sys.path. | ||||
* | | Add importlib benchmarks which try to be "realistic" by importing the decimal | Brett Cannon | 2010-07-22 | 1 | -7/+50 |
| | | | | | | | | module which is the largest module in the stdlib. | ||||
* | | Add comma grouping to max result so it's easier to read. | Brett Cannon | 2010-07-16 | 1 | -1/+1 |
| | |