Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | update pydoc-topics | Benjamin Peterson | 2010-06-06 | 1 | -1/+1 |
| | |||||
* | bump version to 2.7 rc1 | Benjamin Peterson | 2010-06-06 | 2 | -2/+2 |
| | |||||
* | Code formatting change. | Michael Foord | 2010-06-05 | 1 | -0/+1 |
| | |||||
* | Replace deprecated fail* methods with the equivalent assert* ones. | Ezio Melotti | 2010-06-05 | 1 | -11/+11 |
| | |||||
* | Tests for issue 8302, skipped test in a setUpClass or a setUpModule are ↵ | Michael Foord | 2010-06-05 | 3 | -4/+47 |
| | | | | reported as skips rather than errors. | ||||
* | Tests for unittest.TestCase.maxDiff. | Michael Foord | 2010-06-05 | 1 | -0/+39 |
| | |||||
* | Issue 8302. SkipTest exception is setUpClass or setUpModule is now reported ↵ | Michael Foord | 2010-06-05 | 1 | -21/+23 |
| | | | | as a skip rather than an error. | ||||
* | Add a NEWS entry for r81758 and clarify a comment. | Ezio Melotti | 2010-06-05 | 1 | -3/+3 |
| | |||||
* | Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629. | Ezio Melotti | 2010-06-05 | 2 | -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 Foord | 2010-06-05 | 2 | -4/+7 |
| | |||||
* | unittest.TestCase assertion methods inform you when they have omitted an ↵ | Michael Foord | 2010-06-05 | 1 | -1/+5 |
| | | | | over long diff on failure. Issue 8351. | ||||
* | Fix test_py3kwarn not to test for __cmp__-related DeprecationWarning. | Mark Dickinson | 2010-06-05 | 1 | -12/+4 |
| | |||||
* | unittest.TestCase.assertDictEqual and assertMultilineEqual provide better ↵ | Michael Foord | 2010-06-05 | 2 | -6/+12 |
| | | | | default failure messages in the event of long diffs. | ||||
* | Removed the new max_diff argument to assertSequenceEqual. All ↵ | Michael Foord | 2010-06-05 | 2 | -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 Dickinson | 2010-06-05 | 1 | -1/+0 |
| | |||||
* | Extract error message truncating into a method ↵ | Michael Foord | 2010-06-05 | 1 | -4/+6 |
| | | | | (unittest.TestCase._truncateMessage). | ||||
* | Issue 8351. Suppress large diffs in unittest.TestCase.assertSequenceEqual. | Michael Foord | 2010-06-05 | 2 | -3/+29 |
| | |||||
* | unittest TestLoader test discovery filename matching done in a method. This ↵ | Michael Foord | 2010-06-05 | 1 | -20/+24 |
| | | | | makes it easier to override the matching strategy in subclasses. No behaviour change in actual implementation. | ||||
* | properly lookup the __format__ special method | Benjamin Peterson | 2010-06-05 | 1 | -0/+3 |
| | |||||
* | #4487: have Charset check with codecs for possible aliases. | R. David Murray | 2010-06-04 | 2 | -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.py | Martin v. Löwis | 2010-06-04 | 2 | -0/+27 |
| | | | | Patch by Christop Gohlke and Amaury Forgeot d'Arc. | ||||
* | test verifying the resp object is closed for HEAD response. | Senthil Kumaran | 2010-06-04 | 1 | -1/+1 |
| | |||||
* | Fix issue6312 - close the resp object for HEAD response. | Senthil Kumaran | 2010-06-04 | 1 | -0/+1 |
| | |||||
* | use a set for membership testing | Benjamin Peterson | 2010-06-03 | 1 | -2/+2 |
| | |||||
* | #8889: rewrite transient_internet so we don't use EAI_NODATA on FreeBSD. | R. David Murray | 2010-06-03 | 1 | -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 Murray | 2010-06-03 | 2 | -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 Krah | 2010-06-03 | 1 | -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 responsible | Lars Gustäbel | 2010-06-03 | 3 | -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 size | Lars Gustäbel | 2010-06-03 | 2 | -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.py | Ronald Oussoren | 2010-06-03 | 1 | -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 Murray | 2010-06-02 | 2 | -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 Sajip | 2010-06-02 | 1 | -9/+15 |
| | |||||
* | Fix #8618. Ask the Windows mixer API if there are any playback devices | Brian Curtin | 2010-06-01 | 1 | -0/+6 |
| | | | | configured before attempting to test PlaySound. | ||||
* | Fix Issue8797 - urllib2 basic authentication fix for wrong passwords. It ↵ | Senthil Kumaran | 2010-06-01 | 2 | -1/+9 |
| | | | | fails after 5 retries. | ||||
* | Issue #8748: Fix incorrect results from comparisons between an integer | Mark Dickinson | 2010-05-30 | 1 | -1/+18 |
| | | | | and a complex instance. Based on a patch by Meador Inge. | ||||
* | Issue #5211: Complete removal of implicit coercions for the complex | Mark Dickinson | 2010-05-30 | 1 | -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 the | Brian Curtin | 2010-05-28 | 1 | -11/+16 |
| | | | | pipe communication into a loop to retry in case a buildbot gets even slower. | ||||
* | remove non-ascii coding per PEP 8 | Benjamin Peterson | 2010-05-28 | 1 | -2/+1 |
| | |||||
* | Issue #8835: test_support.transient_internet() catchs gaierror(EAI_NONAME) and | Victor Stinner | 2010-05-27 | 1 | -1/+3 |
| | | | | gaierror(EAI_NODATA) | ||||
* | Issue #7150: Raise OverflowError if the result of adding or subtracting | Alexander Belopolsky | 2010-05-27 | 1 | -9/+10 |
| | | | | timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR range. | ||||
* | Issue #7879: Skip negative timestamps test on any Windows platform | Alexander Belopolsky | 2010-05-26 | 1 | -7/+2 |
| | | | | using unittest.skipIf decorator. | ||||
* | Issue #7879: Do not test negative timestamps on any Windows platform | Alexander Belopolsky | 2010-05-26 | 1 | -3/+3 |
| | | | | including Windows CE. | ||||
* | Issue #8825: additional testcases for int(string, 0) and long(string, 0). | Mark Dickinson | 2010-05-26 | 2 | -0/+23 |
| | |||||
* | Issue #7449: Skip test_socketserver if threading support is disabled | Victor Stinner | 2010-05-26 | 1 | -0/+1 |
| | |||||
* | Issue #3798: Write sys.exit() message to sys.stderr to use stderr encoding and | Victor Stinner | 2010-05-25 | 1 | -0/+20 |
| | | | | error handler, instead of writing to the C stderr file in utf-8 | ||||
* | Fix a NameError in test_enumerate. | Mark Dickinson | 2010-05-25 | 1 | -1/+1 |
| | |||||
* | Issue #8816: Extra tests for some built-in functions. These tests are | Mark Dickinson | 2010-05-25 | 3 | -14/+84 |
| | | | | ports of IronPython tests. Thanks Gregory Nofi. | ||||
* | Issue 8143: sync unquote in urlparse with urllib; add comment about doing so. | R. David Murray | 2010-05-25 | 2 | -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 return | Brian Curtin | 2010-05-25 | 1 | -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 Stinner | 2010-05-24 | 2 | -0/+10 |
| |