summaryrefslogtreecommitdiff
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* update pydoc-topicsBenjamin Peterson2010-06-061-1/+1
|
* bump version to 2.7 rc1Benjamin Peterson2010-06-062-2/+2
|
* Code formatting change.Michael Foord2010-06-051-0/+1
|
* Replace deprecated fail* methods with the equivalent assert* ones.Ezio Melotti2010-06-051-11/+11
|
* Tests for issue 8302, skipped test in a setUpClass or a setUpModule are ↵Michael Foord2010-06-053-4/+47
| | | | reported as skips rather than errors.
* Tests for unittest.TestCase.maxDiff.Michael Foord2010-06-051-0/+39
|
* Issue 8302. SkipTest exception is setUpClass or setUpModule is now reported ↵Michael Foord2010-06-051-21/+23
| | | | as a skip rather than an error.
* Add a NEWS entry for r81758 and clarify a comment.Ezio Melotti2010-06-051-3/+3
|
* Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629.Ezio Melotti2010-06-052-10/+170
| | | | | | | | | | | | | | | 1) #8271: when a byte sequence is invalid, only the start byte and all the valid continuation bytes are now replaced by U+FFFD, instead of replacing the number of bytes specified by the start byte. See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (pages 94-95); 2) 5- and 6-bytes-long UTF-8 sequences are now considered invalid (no changes in behavior); 3) Add code and tests to reject surrogates (U+D800-U+DFFF) as defined in RFC 3629, but leave it commented out since it's not backward compatible; 4) Change the error messages "unexpected code byte" to "invalid start byte" and "invalid data" to "invalid continuation byte"; 5) Add an extensive set of tests in test_unicode; 6) Fix test_codeccallbacks because it was failing after this change.
* Fix unittest tests after previous commit.Michael Foord2010-06-052-4/+7
|
* unittest.TestCase assertion methods inform you when they have omitted an ↵Michael Foord2010-06-051-1/+5
| | | | over long diff on failure. Issue 8351.
* Fix test_py3kwarn not to test for __cmp__-related DeprecationWarning.Mark Dickinson2010-06-051-12/+4
|
* unittest.TestCase.assertDictEqual and assertMultilineEqual provide better ↵Michael Foord2010-06-052-6/+12
| | | | default failure messages in the event of long diffs.
* Removed the new max_diff argument to assertSequenceEqual. All ↵Michael Foord2010-06-052-13/+35
| | | | unittest.TestCase assert methods that use difflib to produce failure messages now truncate overly long messages. New class attribute unittest.TestCase.maxDiff to configure this if necessary. Issue 8351.
* Issue #8627: remove out-of-date warning about overriding __cmp__Mark Dickinson2010-06-051-1/+0
|
* Extract error message truncating into a method ↵Michael Foord2010-06-051-4/+6
| | | | (unittest.TestCase._truncateMessage).
* Issue 8351. Suppress large diffs in unittest.TestCase.assertSequenceEqual.Michael Foord2010-06-052-3/+29
|
* unittest TestLoader test discovery filename matching done in a method. This ↵Michael Foord2010-06-051-20/+24
| | | | makes it easier to override the matching strategy in subclasses. No behaviour change in actual implementation.
* properly lookup the __format__ special methodBenjamin Peterson2010-06-051-0/+3
|
* #4487: have Charset check with codecs for possible aliases.R. David Murray2010-06-042-1/+10
| | | | | | | | | Previously, unexpected results occurred when email was passed, for example, 'utf8' as a charset name, since email would accept it but would *not* use the 'utf-8' codec for it, even though Python itself recognises that as an alias for utf-8. Now Charset checks with codecs for aliases as well as its own internal table. Issue 8898 has been opened to change this further in py3k so that all aliasing is routed through the codecs module.
* Issue #6470: Drop UNC prefix in FixTk.pyMartin v. Löwis2010-06-042-0/+27
| | | | Patch by Christop Gohlke and Amaury Forgeot d'Arc.
* test verifying the resp object is closed for HEAD response.Senthil Kumaran2010-06-041-1/+1
|
* Fix issue6312 - close the resp object for HEAD response.Senthil Kumaran2010-06-041-0/+1
|
* use a set for membership testingBenjamin Peterson2010-06-031-2/+2
|
* #8889: rewrite transient_internet so we don't use EAI_NODATA on FreeBSD.R. David Murray2010-06-031-7/+22
| | | | | | | FreeBSD doesn't have socket.EAI_NODATA. I rewrote the routine because there's no easy way to conditionally include a context manager in a with statement. As a side benefit, instead of a stack of context managers there's now only one.
* #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n.R. David Murray2010-06-032-1/+19
| | | | | | | | | | If a body part ended with \r\n, feedparser, using '$' to terminate its search for the newline, would match on the \r\n, and think that it needed to strip two characters in order to account for the line end before the boundary. That made it chop one too many characters off the end of the body part. Using \Z makes the match correct. Patch and test by Tony Nelson.
* Issue #7384: If the system readline library is linked against ncurses,Stefan Krah2010-06-031-5/+0
| | | | | | | | the curses module must be linked against ncurses as well. Otherwise it is not safe to load both the readline and curses modules in an application. Thanks Thomas Dickey for answering questions about ncurses/ncursesw and readline!
* Issue #8741: Fixed the TarFile.makelink() method that is responsibleLars Gustäbel2010-06-033-26/+90
| | | | | | | | for extracting symbolic and hard link entries as regular files as a work-around on platforms that do not support filesystem links. This stopped working reliably after a change in r74571. I also added a few tests for this functionality.
* Issue #8833: tarfile created hard link entries with a sizeLars Gustäbel2010-06-032-2/+6
| | | | | field != 0 by mistake. The associated testcase did not expose this bug because it was broken too.
* Fix for issue #7724: ensure that distutils and python's own setup.pyRonald Oussoren2010-06-031-1/+21
| | | | | | | | | | honor the MacOSX SDK when one is specified. This is needed to be able to build using the 10.4u SDK while running on OSX 10.6. This is a fixed version of the patch in r80963, I've tested this patch on OSX and Linux.
* #1368247: make set_charset/MIMEText automatically encode unicode _payload.R. David Murray2010-06-022-0/+27
| | | | | | | | Fixes (mysterious, to the end user) UnicodeErrors when using utf-8 as the charset and unicode as the _text argument. Also makes the way in which unicode gets encoded to quoted printable for other charsets more sane (it only worked by accident previously). The _payload now is encoded to the charset.output_charset if it is unicode.
* Logging: improved error reporting for BaseConfigurator.resolve().Vinay Sajip2010-06-021-9/+15
|
* Fix #8618. Ask the Windows mixer API if there are any playback devicesBrian Curtin2010-06-011-0/+6
| | | | configured before attempting to test PlaySound.
* Fix Issue8797 - urllib2 basic authentication fix for wrong passwords. It ↵Senthil Kumaran2010-06-012-1/+9
| | | | fails after 5 retries.
* Issue #8748: Fix incorrect results from comparisons between an integerMark Dickinson2010-05-301-1/+18
| | | | and a complex instance. Based on a patch by Meador Inge.
* Issue #5211: Complete removal of implicit coercions for the complexMark Dickinson2010-05-301-0/+13
| | | | | type. Coercion for arithmetic operations was already removed in r78280, but that commit didn't remove coercion for rich comparisons.
* Fix #8405 for slow buildbots. Remove the sleep on startup and move theBrian Curtin2010-05-281-11/+16
| | | | pipe communication into a loop to retry in case a buildbot gets even slower.
* remove non-ascii coding per PEP 8Benjamin Peterson2010-05-281-2/+1
|
* Issue #8835: test_support.transient_internet() catchs gaierror(EAI_NONAME) andVictor Stinner2010-05-271-1/+3
| | | | gaierror(EAI_NODATA)
* Issue #7150: Raise OverflowError if the result of adding or subtractingAlexander Belopolsky2010-05-271-9/+10
| | | | timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range.
* Issue #7879: Skip negative timestamps test on any Windows platformAlexander Belopolsky2010-05-261-7/+2
| | | | using unittest.skipIf decorator.
* Issue #7879: Do not test negative timestamps on any Windows platformAlexander Belopolsky2010-05-261-3/+3
| | | | including Windows CE.
* Issue #8825: additional testcases for int(string, 0) and long(string, 0).Mark Dickinson2010-05-262-0/+23
|
* Issue #7449: Skip test_socketserver if threading support is disabledVictor Stinner2010-05-261-0/+1
|
* Issue #3798: Write sys.exit() message to sys.stderr to use stderr encoding andVictor Stinner2010-05-251-0/+20
| | | | error handler, instead of writing to the C stderr file in utf-8
* Fix a NameError in test_enumerate.Mark Dickinson2010-05-251-1/+1
|
* Issue #8816: Extra tests for some built-in functions. These tests areMark Dickinson2010-05-253-14/+84
| | | | ports of IronPython tests. Thanks Gregory Nofi.
* Issue 8143: sync unquote in urlparse with urllib; add comment about doing so.R. David Murray2010-05-252-10/+18
| | | | | | | unquote is duplicated in the two files to avoid a circular reference. (This is fixed in Python3.) Updates keep getting made to the public unquote without fixing the urlparse one, however, so this fix syncs the two and adds a comment to both to make sure changes are applied to both.
* Fix #2810 - handle the case where some registry calls returnBrian Curtin2010-05-251-0/+53
| | | | | | ERROR_MORE_DATA, requiring another call to get the remaining data. Patch by Daniel Stutzbach
* Issue #6662: Fix parsing of malformatted charref (&#bad;)Victor Stinner2010-05-242-0/+10
|