summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* frozen modules now apparently have empty __path__Benjamin Peterson2013-06-011-1/+1
|
* Issue #18065: For frozen packages set __path__ to [].Brett Cannon2013-06-011-1/+1
| | | | | | | Previously __path__ was set to [__name__], but that could lead to bad results if someone managed to circumvent the frozen importer and somehow ended up with a finder that thought __name__ was a legit directory/location.
* Issues #18088, 18089: IntroduceBrett Cannon2013-05-313-30/+229
| | | | | | | | | | | | | | | | | | | | | importlib.abc.Loader.init_module_attrs() and implement importlib.abc.InspectLoader.load_module(). The importlib.abc.Loader.init_module_attrs() method sets the various attributes on the module being loaded. It is done unconditionally to support reloading. Typically people used importlib.util.module_for_loader, but since that's a decorator there was no way to override it's actions, so init_module_attrs() came into existence to allow for overriding. This is also why module_for_loader is now pending deprecation (having its other use replaced by importlib.util.module_to_load). All of this allowed for importlib.abc.InspectLoader.load_module() to be implemented. At this point you can now implement a loader with nothing more than get_code() (which only requires get_source(); package support requires is_package()). Thanks to init_module_attrs() the implementation of load_module() is basically a context manager containing 2 methods calls, a call to exec(), and a return statement.
* Add a reset_name argument to importlib.util.module_to_load in order toBrett Cannon2013-05-311-0/+12
| | | | | control whether to reset the module's __name__ attribute in case a reload is being done.
* Issue #18094: test_uuid no more reports skipped tests as passed.Serhiy Storchaka2013-05-311-51/+27
|\
| * Issue #18094: test_uuid no more reports skipped tests as passed.Serhiy Storchaka2013-05-311-51/+27
| |
| * Backport bff16086f03b and bcaaaa00425b.Stefan Krah2013-05-291-0/+13
| |
* | Rename importlib.util.ModuleManager to module_to_load so that the nameBrett Cannon2013-05-301-7/+7
| | | | | | | | explains better what the context manager is providing.
* | test_decimal: add __sizeof__() tests for code coverage.Stefan Krah2013-05-291-0/+13
| |
* | Merge 3.3.Stefan Krah2013-05-291-0/+4
|\ \ | |/
| * Issue #17768: Support newline fill character in decimal.py and NUL fillStefan Krah2013-05-291-0/+4
| | | | | | | | character in _decimal.c.
* | merge from 3.3Senthil Kumaran2013-05-291-0/+12
|\ \ | |/ | | | | | | | | #17403: urllib.parse.robotparser normalizes the urls before adding to ruleline. This helps in handling certain types invalid urls in a conservative manner. Patch contributed by Mher Movsisyan.
| * #17403: urllib.parse.robotparser normalizes the urls before adding to ruleline.Senthil Kumaran2013-05-291-0/+12
| | | | | | | | This helps in handling certain types invalid urls in a conservative manner.
* | Merge with 3.3Terry Jan Reedy2013-05-291-8/+8
|\ \ | |/
| * Issue #15392: Do not run tests if threading/_thread not available. OtherwiseTerry Jan Reedy2013-05-291-8/+8
| | | | | | | | touchup test_idle. Rename README.txt.
* | Issue #18070: importlib.util.module_for_loader() now sets __loader__Brett Cannon2013-05-281-1/+12
| | | | | | | | | | and __package__ unconditionally in order to do the right thing for reloading.
* | Introduce importlib.util.ModuleManager which is a context manager toBrett Cannon2013-05-281-0/+50
| | | | | | | | | | | | | | | | handle providing (and cleaning up if needed) the module to be loaded. A future commit will use the context manager in Lib/importlib/_bootstrap.py and thus why the code is placed there instead of in Lib/importlib/util.py.
* | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+9
|\ \ | |/ | | | | stream's read() returns more bytes than requested.
| * Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+9
| | | | | | | | stream's read() returns more bytes than requested.
* | Issue #17746: Skip test_shutil.test_non_matching_mode when run as root orSerhiy Storchaka2013-05-281-0/+4
|\ \ | |/ | | | | on unsuitable platform/environment.
| * Issue #17746: Skip test_shutil.test_non_matching_mode when run as root orSerhiy Storchaka2013-05-281-0/+4
| | | | | | | | on unsuitable platform/environment.
* | Issue #18011: base64.b32decode() now raises a binascii.Error if there areSerhiy Storchaka2013-05-281-3/+5
|\ \ | |/ | | | | | | non-alphabet characters present in the input string to conform a docstring. Updated the module documentation.
| * Issue #18011: base64.b32decode() now raises a binascii.Error if there areSerhiy Storchaka2013-05-281-3/+5
| | | | | | | | | | non-alphabet characters present in the input string to conform a docstring. Updated the module documentation.
* | Merge with 3.3Jason R. Coombs2013-05-281-1/+1
|\ \ | |/
| * Use simple call to os.symlink for broken link (intended for previous commit)Jason R. Coombs2013-05-281-1/+1
| |
* | Merge with 3.3Jason R. Coombs2013-05-281-8/+36
|\ \ | |/
| * Issue #13772: Restored directory detection of targets in `os.symlink` on ↵Jason R. Coombs2013-05-281-8/+36
| | | | | | | | Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
* | Merge with 3.3Terry Jan Reedy2013-05-281-0/+14
|\ \ | |/
| * Issue #15392: Create a unittest framework for IDLE.Terry Jan Reedy2013-05-281-0/+14
| | | | | | | | Preliminary patch by Rajagopalasarma Jayakrishnan.
* | Issue #18072: Implement get_code() for importlib.abc.InspectLoader andBrett Cannon2013-05-281-8/+88
| | | | | | | | ExecutionLoader.
* | Move importlib.abc.SourceLoader.source_to_code() to InspectLoader.Brett Cannon2013-05-261-3/+47
| | | | | | | | | | | | | | While the previous location was fine, it makes more sense to have the method higher up in the inheritance chain, especially at a point where get_source() is defined which is the earliest source_to_code() could programmatically be used in the inheritance tree in importlib.abc.
* | Issue #18063: fix some struct specifications in the tests for sys.getsizeof().Antoine Pitrou2013-05-251-5/+5
|\ \ | |/
| * Issue #18063: fix some struct specifications in the tests for sys.getsizeof().Antoine Pitrou2013-05-251-5/+5
| |
* | Fix #16832 - expose cache validity checking support in ABCMetaŁukasz Langa2013-05-251-0/+3
| |
* | Clean-up duplicated code in testsEli Bendersky2013-05-251-46/+0
|\ \ | |/
| * Clean-up duplicated code in testsEli Bendersky2013-05-251-46/+0
| |
* | Issue #13612: handle unknown encodings without a buffer overflow.Eli Bendersky2013-05-251-0/+92
|\ \ | |/ | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka.
| * Issue #13612: handle unknown encodings without a buffer overflow.Eli Bendersky2013-05-251-0/+92
| | | | | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka.
* | Fix test_bad_address on Ubuntu 13.04Antoine Pitrou2013-05-251-1/+4
|\ \ | |/
| * Fix test_bad_address on Ubuntu 13.04Antoine Pitrou2013-05-251-1/+4
| |
* | Closes #18046: Simplified logging internals relating to levels and their ↵Vinay Sajip2013-05-251-3/+6
| | | | | | | | names. Thanks to Alex Gaynor for the patch.
* | Fix #17272 - Make Request.full_url and Request.get_full_url return same ↵Senthil Kumaran2013-05-242-0/+23
| | | | | | | | | | | | result under all circumstances. Document the change of Request.full_url to a property.
* | (3.3->default) Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-0/+3
|\ \ | |/ | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
| * Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-0/+3
| | | | | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
* | merge 3.3Benjamin Peterson2013-05-221-0/+6
|\ \ | |/
| * add test for inequalityBenjamin Peterson2013-05-221-0/+6
| |
* | Issue #16986: ElementTree now correctly parses a string input not only whenSerhiy Storchaka2013-05-221-15/+30
|\ \ | |/ | | | | an internal XML encoding is UTF-8 or US-ASCII.
| * Issue #16986: ElementTree now correctly parses a string input not only whenSerhiy Storchaka2013-05-221-15/+30
| | | | | | | | an internal XML encoding is UTF-8 or US-ASCII.
* | Issue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickledSerhiy Storchaka2013-05-211-2/+11
| | | | | | | | size and pickling time.
* | Backed out changeset c0f2b038fc12Charles-François Natali2013-05-211-6/+6
| |