summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test
Commit message (Collapse)AuthorAgeFilesLines
* Update importlib.invalidate_caches() to be more general.Brett Cannon2012-02-272-0/+35
|
* Make the benchmark recording more sensible for importlib.test.benchmark.Brett Cannon2012-02-241-29/+27
|
* Improper type for __package__ should raise TypeError, not ValueError.Brett Cannon2012-02-231-1/+1
|
* Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new ↵Antoine Pitrou2012-02-201-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 Cannon2012-02-171-8/+9
| | | | directly executed.
* Have importlib.test use argparse instead of some hacked up solution.Brett Cannon2012-02-171-3/+8
|
* Tweak the handling of the empty string in sys.path for importlib.Brett Cannon2012-02-161-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 Cannon2012-02-161-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 toBrett Cannon2012-02-081-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 Cannon2012-02-071-6/+8
| | | | implementation of __import__ is used.
* Have importlib.test.benchmark test with tabnanny as a medium-sized test.Brett Cannon2012-02-071-32/+58
|
* Fix a minor output typo as found by Terry Reedy.Brett Cannon2012-01-311-1/+1
|
* Let importlib.test.benchmark take a specific benchmark name to run.Brett Cannon2012-01-311-3/+18
|
* Allow for the specification of a file to dump importlib benchmarkBrett Cannon2012-01-311-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 Cannon2012-01-301-0/+6
|
* Issue #13890: Fix importlib case-sensitivity tests to not run on Windows.Brett Cannon2012-01-301-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 thatBrett Cannon2012-01-251-4/+4
| | | | does not need to be exposed from C code for bootstrapping reasons.
* 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-1/+9
|\ \ | |/
| * Port remaining test fixes, and fix test_importlib too.Antoine Pitrou2012-01-251-1/+9
| |
* | Issue #11235: Fix OverflowError when trying to import a source file whose ↵Antoine Pitrou2012-01-241-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 Pitrou2012-01-241-0/+17
| | | | | | | | modification time doesn't fit in a 32-bit timestamp.
* | kill useless import added by 87331661042bBenjamin Peterson2012-01-161-1/+0
| |
* | Issue #13645: pyc files now contain the size of the corresponding sourceAntoine Pitrou2012-01-132-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 Pitrou2011-12-301-0/+4
|\ \ | |/
| * Fix no-op tests in importlib.Antoine Pitrou2011-12-301-0/+4
| |
* | Issue #13593: updating the importlib utility decorators for __qualname__.Meador Inge2011-12-151-0/+10
| |
* | Issue #13591: import_module potentially imports a module twice.Meador Inge2011-12-152-1/+23
|\ \ | |/
| * Issue #13591: import_module potentially imports a module twice.Meador Inge2011-12-152-1/+23
| |
* | Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's ↵Florent Xicluna2011-12-101-2/+2
| | | | | | | | DeprecationWarning (cgi, importlib, nntplib, smtpd).
* | Closes #12291 for 3.3 - merged fix from 3.2.Vinay Sajip2011-07-021-1/+1
|\ \ | |/
| * Closes #12291: Fixed bug which was found when doing multiple loads from one ↵Vinay Sajip2011-07-021-1/+1
| | | | | | | | stream.
* | Kill dead code in importlib.test.__main__ (#12019, reviewed by Brett Cannon)Éric Araujo2011-06-071-6/+1
| |
* | (Merge 3.2) Issue #11614: Fix importlib tests for the new __hello__ moduleVictor Stinner2011-05-161-9/+17
|\ \ | |/
| * (Merge 3.1) Issue #11614: Fix importlib tests for the new __hello__ moduleVictor Stinner2011-05-161-9/+17
| |\
| | * Issue #11614: Fix importlib tests for the new __hello__ moduleVictor Stinner2011-05-161-9/+17
| | |
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-214-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 fromBrett Cannon2010-02-191-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 fromBrett Cannon2009-11-071-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 fromBrett Cannon2009-11-051-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 fromBrett Cannon2009-08-301-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 fromGeorg Brandl2009-08-1318-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 fromBrett Cannon2009-07-201-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 Cannon2009-07-201-8/+8
| | |
* | | Remove a stale comment.Brett Cannon2011-03-241-7/+0
|/ /
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-204-23/+23
| |
* | Make sure that no __pycache__ directory is needlessly left behind when testingBrett Cannon2010-08-221-7/+10
| | | | | | | | imports with an empty string in sys.path.
* | Add importlib benchmarks which try to be "realistic" by importing the decimalBrett Cannon2010-07-221-7/+50
| | | | | | | | module which is the largest module in the stdlib.
* | Add comma grouping to max result so it's easier to read.Brett Cannon2010-07-161-1/+1
| |