summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* #14814: ipaddress: refactor dup code, minor janitoring, bump coverageHynek Schlawack2012-06-051-28/+148
| | | | | | | | - remove duplicate netmask/hostmask code - make two ifs more pythonic - remove packed property for networks - some minor pep8 stuff - Test coverage is now at 97%, the rest are mostly unreachable safeguards.
* Issue #14711: os.stat_float_times() has been deprecated.Victor Stinner2012-06-041-2/+6
|
* Add a function lzma.open(), to match gzip.open() and bz2.open().Nadeem Vawda2012-06-041-0/+101
|
* Allow LZMAFile to accept modes with a "b" suffix.Nadeem Vawda2012-06-041-2/+17
|
* Simplify usage of LZMAFile's fileobj support, like with BZ2File.Nadeem Vawda2012-06-041-120/+110
|
* Add a function bz2.open(), to match gzip.open().Nadeem Vawda2012-06-041-11/+106
|
* Make BZ2File's fileobj support easier to use.Nadeem Vawda2012-06-041-13/+27
| | | | | The fileobj argument was added during the 3.3 development cycle, so this change does not break backward compatibility with 3.2.
* Add fileobj support to gzip.open().Nadeem Vawda2012-06-041-0/+13
|
* #8739: fix omission of DEBUGSTREAM reset in new test in test_smtpd.R David Murray2012-06-041-0/+2
| | | | | This clears up an error in detected by refleak mode that showed up when test_smtplib was run after test_smtpd in the same refleak run.
* #14814: Remove dead code from ipaddressHynek Schlawack2012-06-041-0/+16
| | | | | _BaseNetwork contained (faulty) methods for creating string representations. I've fixed them and put them to use by eliminating identical overrides.
* Whitespace normalizationBarry Warsaw2012-06-041-1/+1
|
* PEP 421 requires that .name be lower case.Barry Warsaw2012-06-041-0/+4
|
* Trunk merge.Barry Warsaw2012-06-042-0/+26
|\
| * #14814: Use correct comparison for IP addressesHynek Schlawack2012-06-041-0/+1
| | | | | | | | | | ipaddress._BaseV4.is_unspecified() compared IP addresses using "in" which fails.
| * Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSErrorGregory P. Smith2012-06-031-0/+25
| |\ | | | | | | | | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not.
| | * Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSErrorGregory P. Smith2012-06-031-6/+34
| | | | | | | | | | | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not.
| | * Added test skip under Windows, as not applicable there.Vinay Sajip2012-05-311-0/+1
| | |
* | | Eric Snow's implementation of PEP 421.Barry Warsaw2012-06-032-1/+160
|/ / | | | | | | Issue 14673: Add sys.implementation
* | #2658: Add test for issue fixed by fix for #1079.R David Murray2012-06-031-0/+10
| |
* | #1079: Fix parsing of encoded words.R David Murray2012-06-022-14/+67
| | | | | | | | | | | | | | | | | | This is a behavior change: before this leading and trailing spaces were stripped from ASCII parts, now they are preserved. Without this fix we didn't parse the examples in the RFC correctly, so I think breaking backward compatibility here is justified. Patch by Ralf Schlatterbeck.
* | Fix sporadic failure of test_time.test_process_time() on WindowsVictor Stinner2012-06-011-2/+5
| | | | | | | | Use a threshold of 20 ms instead of 10 ms.
* | #14814: Fix errror message creation in ipaddress.collapse_addressesHynek Schlawack2012-06-011-4/+11
| |
* | Close #14969: Improve the handling of exception chaining in contextlib.ExitStackNick Coghlan2012-06-011-11/+18
| |
* | Issue #14007: implement doctype() method calling in XMLParser of _elementtree.Eli Bendersky2012-06-011-1/+18
| | | | | | | | Includes exposing a doctype handler from expat through pyexpat.
* | Issue #14007: make XMLParser a real subclassable type exported from ↵Eli Bendersky2012-06-011-0/+29
| | | | | | | | _elementtree. +cleanups
* | Don't use metaclasses when class decorators can do the job.R David Murray2012-05-314-41/+44
| | | | | | | | | | Thanks to Nick Coghlan for pointing out that I'd forgotten about class decorators.
* | Close #14963: Use an iterative algorithm in contextlib.ExitStack.__exit__ ↵Nick Coghlan2012-05-311-0/+6
| | | | | | | | (Patch by Alon Horev)
* | Issue #14963: Added test cases for contextlib.ExitStack exception handling ↵Nick Coghlan2012-05-311-0/+89
| | | | | | | | behaviour (Initial patch by Alon Horev)
* | Make parameterized tests in email less hackish.R David Murray2012-05-314-93/+122
| | | | | | | | | | Or perhaps more hackish, depending on your perspective. But at least this way it is now possible to run the individual tests using the unittest CLI.
* | Issue #14007: implemented the 'element_factory' feature of TreeBuilder inEli Bendersky2012-05-301-4/+14
| | | | | | | | _elementtree, with a test.
* | #14796: fix failure of new calendar test on windows.R David Murray2012-05-301-2/+3
| |
* | Reapplied skip logic for test on Windows, which appears to have been lost ↵Vinay Sajip2012-05-291-0/+1
| | | | | | | | during a merge.
* | Updated test to reflect renamed file.Vinay Sajip2012-05-291-1/+1
| |
* | #14796: improve calendar test coverage.R David Murray2012-05-291-9/+211
| | | | | | | | Patch by Oleg Plakhotnyuk.
* | #10839: add new test file that was omitted from checkinR David Murray2012-05-291-0/+18
| |
* | Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and ↵Eli Bendersky2012-05-291-0/+14
| | | | | | | | subclassable.
* | #14835: Make plistlib output empty arrays & dicts like OS XHynek Schlawack2012-05-291-0/+6
| | | | | | | | Patch by Sidney San Martín.
* | Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.Eli Bendersky2012-05-291-1/+65
| | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti.
* | Refactor test_email/test_pickleable and add tests for date headersR David Murray2012-05-291-28/+59
| |
* | Regularize test_email/test_headerregistry's references to policy.R David Murray2012-05-291-6/+6
| |
* | Refactor test_email/test_defect_handling.R David Murray2012-05-292-179/+162
| |
* | Issue #14930: Make memoryview objects weakrefable.Richard Oudkerk2012-05-282-1/+16
| |
* | Fixed typo.Vinay Sajip2012-05-281-1/+1
| |
* | Tweaked tests to use launcher executable name on OS X.Vinay Sajip2012-05-281-1/+5
| |
* | #12515: email now registers a defect if the MIME end boundary is missing.R David Murray2012-05-281-0/+33
| | | | | | | | | | | | This commit also restores the news item for 167256 that it looks like Terry inadvertently deleted. (Either that, or I don't understand now merging works...which is equally possible.)
* | #1672568: email now registers defects for base64 payload format errors.R David Murray2012-05-283-268/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which also means that it is now producing *something* for any base64 payload, which is what leads to the couple of older test changes in test_email. This is a slightly backward incompatible behavior change, but the new behavior is so much more useful than the old (you can now *reliably* detect errors, and any program that was detecting errors by sniffing for a base64 return from get_payload(decode=True) and then doing its own error-recovery decode will just get the error-recovery decode right away). So this seems to me to be worth the small risk inherent in this behavior change. This patch also refactors the defect tests into a separate test file, since they are no longer just parser tests.
* | #14925: email now registers a defect for missing header/body separator.R David Murray2012-05-282-11/+39
| | | | | | | | | | | | | | This patch also deprecates the MalformedHeaderDefect. My best guess is that this defect was rendered obsolete by a refactoring of the parser, and the corresponding defect for the new parser (which this patch introduces) was overlooked.
* | Make headerregistry fully part of the provisional api.R David Murray2012-05-273-36/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | When I made the checkin of the provisional email policy, I knew that Address and Group needed to be made accessible from somewhere. The more I looked at it, though, the more it became clear that since this is a provisional API anyway, there's no good reason to hide headerregistry as a private API. It was designed to ultimately be part of the public API, and so it should be part of the provisional API. This patch fully documents the headerregistry API, and deletes the abbreviated version of those docs I had added to the provisional policy docs.
* | Changed executable name computation in test_venv to allow for debug executables.Vinay Sajip2012-05-271-2/+1
| |
* | Refined venv tests.Vinay Sajip2012-05-271-9/+26
| |