summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pkgutil.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #17211: Yield a namedtuple in pkgutil.Eric Snow2016-09-081-2/+3
| | | | Patch by Ramchandra Apte.
* Issue #25805: Skip a test for test_pkgutil when __name__ == __main__.Brett Cannon2016-08-121-0/+1
| | | | Thanks to SilentGhost for the patch.
* Issue #26896: Disambiguate uses of "importer" with "finder".Brett Cannon2016-07-081-1/+1
| | | | Thanks to Oren Milman for the patch.
* Issue #14209: pkgutil.iter_zipimport_modules ignores the prefix for packagesŁukasz Langa2016-06-121-3/+79
| | | | Patch by James Pickering.
* Issue #23014: Make importlib.abc.Loader.create_module() required whenBrett Cannon2015-01-091-0/+3
| | | | | | | | | importlib.abc.Loader.exec_module() is also defined. Before this change, create_module() was optional **and** could return None to trigger default semantics. This change now reduces the options for choosing default semantics to one and in the most backporting-friendly way (define create_module() to return None).
* Issue #14710: Fix both pkgutil.find_loader() and get_loader() to notBrett Cannon2014-05-231-0/+14
| | | | | | raise an exception when a module doesn't exist. Thanks to Pavel Aslanov for the bug report.
* Issue #21200: Return None from pkgutil.get_loader() when __spec__ is missing.Eric Snow2014-04-191-1/+18
|
* Close #20839: pkgutil.find_loader now uses importlib.util.find_specNick Coghlan2014-03-041-0/+19
|
* merge 3.3Benjamin Peterson2014-02-161-0/+5
|\
| * backout fafac90b69c4Benjamin Peterson2014-02-161-0/+5
| |
* | merge 3.3Benjamin Peterson2014-01-091-5/+0
|\ \ | |/
| * clear zip stat cache after each ref leak runBenjamin Peterson2014-01-091-5/+0
| |
* | Issue #19708: Update pkgutil to use the new importer APIs.Eric Snow2014-01-041-13/+12
| |
* | Issue #19724: clear out colliding temp module.Eric Snow2013-11-221-0/+2
| |
* | Implement PEP 451 (ModuleSpec).Eric Snow2013-11-221-3/+13
| |
* | Issue #17177: Stop using imp in a bunch of testsBrett Cannon2013-06-151-2/+2
|/
* Close issue #16163: handle submodules in pkgutil.iter_importersNick Coghlan2013-04-141-0/+39
|
* Issue #15314: Tweak a pkgutil test to hopefully be more Windows friendlyNick Coghlan2012-07-171-1/+2
|
* Issue #15343: Handle importlib.machinery.FileFinder instances in ↵Nick Coghlan2012-07-151-1/+5
| | | | pkgutil.walk_packages (et al)
* Take the first step in resolving the messy pkgutil vs importlib edge cases ↵Nick Coghlan2012-07-151-2/+41
| | | | by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ correctly so that runpy still works (Affects #15343, #15314, #15357)
* Issue #15294: Fix a regression in pkgutil.extend_path()'s handling of nested ↵Antoine Pitrou2012-07-091-2/+44
| | | | namespace packages.
* issue 14660: Implement PEP 420, namespace packages.Eric V. Smith2012-05-251-12/+40
|
* Cleanup so subsequent tests won't fail. Needs to be moved into a support ↵Eric V. Smith2012-05-161-0/+3
| | | | routine (see 14715).
* Issue #14817: Add rudimentary tests for pkgutil.extend_path.Eric V. Smith2012-05-161-1/+47
|
* Issue #7367: Ensure test directory always gets removed.Ned Deily2011-10-071-2/+2
|
* Issue #7367: Add test case to test_pkgutil for walking path withNed Deily2011-10-061-0/+11
| | | | an unreadable directory.
* Issue 4005: Remove .sort() call on dict_keys object.Alexandre Vassalotti2009-07-051-0/+6
| | | | | | This caused pydoc to fail when there was a zip file in sys.path. Patch contributed by Amaury Forgeot d'Arc.
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-1/+1
|
* Merged revisions 62420-62421,62423-62424 via svnmerge fromChristian Heimes2008-04-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r62420 | mark.dickinson | 2008-04-20 20:30:05 +0200 (Sun, 20 Apr 2008) | 3 lines Even more fixes for alpha Tru64, this time for the phase and polar methods. ........ r62421 | mark.dickinson | 2008-04-20 22:38:48 +0200 (Sun, 20 Apr 2008) | 2 lines Add test for tanh(-0.) == -0. on IEEE 754 systems ........ r62423 | amaury.forgeotdarc | 2008-04-20 23:02:21 +0200 (Sun, 20 Apr 2008) | 3 lines Correct an apparent refleak in test_pkgutil: zipimport._zip_directory_cache contains info for all processed zip files, even when they are no longer used. ........ r62424 | mark.dickinson | 2008-04-20 23:39:04 +0200 (Sun, 20 Apr 2008) | 4 lines math.atan2 is misbehaving on Windows; this patch should fix the problem in the same way that the cmath.phase problems were fixed. ........
* Merged revisions ↵Christian Heimes2008-04-191-0/+127
62350-62355,62358-62359,62364-62365,62370,62372-62375,62378-62379,62381 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r62350 | nick.coghlan | 2008-04-15 12:25:31 +0200 (Tue, 15 Apr 2008) | 1 line Issue 2439: add pkgutils.get_data() as a convenience wrapper for the PEP 302 get_data() API (contributed by Paul Moore) ........ r62351 | nick.coghlan | 2008-04-15 12:28:14 +0200 (Tue, 15 Apr 2008) | 1 line Add test file missing from rev 62350 ........ r62352 | benjamin.peterson | 2008-04-15 13:58:46 +0200 (Tue, 15 Apr 2008) | 2 lines Add myself to Doc/ACKS.txt ........ r62353 | andrew.kuchling | 2008-04-15 15:10:07 +0200 (Tue, 15 Apr 2008) | 6 lines Add *,**,@ to index, as suggested by http://farmdev.com/thoughts/24/what-does-the-def-star-variable-or-def-asterisk-parameter-syntax-do-in-python-/ The right entry type to use isn't clear; operator seems wrong, because *,**,@ aren't being used in expressions here. I put them as 'statement'; 'syntax' might be better. ........ r62354 | andrew.kuchling | 2008-04-15 15:10:41 +0200 (Tue, 15 Apr 2008) | 1 line Typo fix ........ r62355 | mark.dickinson | 2008-04-15 22:51:18 +0200 (Tue, 15 Apr 2008) | 3 lines Fix for possible signed overflow: the behaviour of -LONG_MIN is undefined in ANSI C. ........ r62358 | jeroen.ruigrok | 2008-04-16 14:47:01 +0200 (Wed, 16 Apr 2008) | 2 lines Reformat to 80 columns prior to adding documentation. ........ r62359 | jeroen.ruigrok | 2008-04-16 14:57:43 +0200 (Wed, 16 Apr 2008) | 2 lines Add details about the return value for mmap.flush(). ........ r62364 | raymond.hettinger | 2008-04-17 12:48:31 +0200 (Thu, 17 Apr 2008) | 1 line Issue 2648: Add leading zero to money format recipe in the docs. ........ r62365 | jeroen.ruigrok | 2008-04-17 14:39:45 +0200 (Thu, 17 Apr 2008) | 2 lines Be consistent in the use of read-only. ........ r62370 | andrew.kuchling | 2008-04-17 22:44:06 +0200 (Thu, 17 Apr 2008) | 1 line Typo fixes ........ r62372 | andrew.kuchling | 2008-04-18 04:40:47 +0200 (Fri, 18 Apr 2008) | 1 line Use correct parameter name ........ r62373 | andrew.kuchling | 2008-04-18 18:53:09 +0200 (Fri, 18 Apr 2008) | 1 line #2654: fix typo ........ r62374 | andrew.kuchling | 2008-04-18 20:28:23 +0200 (Fri, 18 Apr 2008) | 4 lines Remove personal note from Jim Roskind; it no longer applies, and the e-mail address is for a previous employer. Can we move the big long copyright statement into a sidebar or something? ........ r62375 | andrew.kuchling | 2008-04-18 20:39:55 +0200 (Fri, 18 Apr 2008) | 1 line Rewrite introductory section, and remove old section. (It was already commented-out, but why keep it?) ........ r62378 | skip.montanaro | 2008-04-18 22:35:46 +0200 (Fri, 18 Apr 2008) | 1 line resolve issue 2014 ........ r62379 | benjamin.peterson | 2008-04-18 22:45:33 +0200 (Fri, 18 Apr 2008) | 2 lines Fix indentation in sysmodule.c ........ r62381 | amaury.forgeotdarc | 2008-04-19 01:31:33 +0200 (Sat, 19 Apr 2008) | 3 lines Some tests did not pass on repeated calls (regrtest -R::) Perform additional cleanup, mostly deleting from sys.modules, or clearing the warnings registry. ........