Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace deprecated fail* methods with the equivalent assert* ones. | Ezio Melotti | 2010-06-05 | 1 | -11/+11 |
| | |||||
* | 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 test_py3kwarn not to test for __cmp__-related DeprecationWarning. | Mark Dickinson | 2010-06-05 | 1 | -12/+4 |
| | |||||
* | Issue #8627: remove out-of-date warning about overriding __cmp__ | Mark Dickinson | 2010-06-05 | 1 | -1/+0 |
| | |||||
* | properly lookup the __format__ special method | Benjamin Peterson | 2010-06-05 | 1 | -0/+3 |
| | |||||
* | Issue #6470: Drop UNC prefix in FixTk.py | Martin v. Löwis | 2010-06-04 | 1 | -0/+25 |
| | | | | 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 |
| | |||||
* | #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. | ||||
* | 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 | 2 | -0/+45 |
| | | | | | | | | 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 | 1 | -1/+5 |
| | | | | | field != 0 by mistake. The associated testcase did not expose this bug because it was broken too. | ||||
* | 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 | 1 | -1/+0 |
| | | | | 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. | ||||
* | 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. | ||||
* | 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 | 1 | -0/+7 |
| | |||||
* | #8016: add the CP858 codec (approved by Benjamin). (Also add CP720 to the ↵ | Georg Brandl | 2010-05-24 | 2 | -4/+6 |
| | | | | tests, it was missing there.) | ||||
* | Fix default value for version help. Approved by Benjamin on python-dev: ↵ | Steven Bethard | 2010-05-24 | 1 | -0/+19 |
| | | | | http://mail.python.org/pipermail/python-dev/2010-May/100231.html | ||||
* | Issue #6268: More bugfixes about BOM, UTF-16 and UTF-32 | Victor Stinner | 2010-05-22 | 1 | -3/+39 |
| | | | | | | | * Fix seek() method of codecs.open(), don't write the BOM twice after seek(0) * Fix reset() method of codecs, UTF-16, UTF-32 and StreamWriter classes * test_codecs: use "w+" mode instead of "wt+". "t" mode is not supported by Solaris or Windows, but does it really exist? I found it the in the issue. | ||||
* | Issue #3924: Ignore cookies with invalid "version" field in cookielib. | Georg Brandl | 2010-05-22 | 1 | -1/+15 |
| | |||||
* | Issue #6268: Fix seek() method of codecs.open(), don't read the BOM twice | Victor Stinner | 2010-05-22 | 1 | -0/+21 |
| | | | | after seek(0) | ||||
* | Issue #5640: Fix Shift-JIS incremental encoder for error handlers different | Victor Stinner | 2010-05-21 | 1 | -0/+4 |
| | | | | than strict | ||||
* | ensure the last line has a trailing newline #8782 | Benjamin Peterson | 2010-05-21 | 1 | -0/+12 |
| | |||||
* | fix name | Benjamin Peterson | 2010-05-21 | 1 | -1/+1 |
| | |||||
* | use addCleanup | Benjamin Peterson | 2010-05-21 | 1 | -30/+27 |
| | |||||
* | return NotImplemented from Mapping when comparing to a non-mapping #8729 | Benjamin Peterson | 2010-05-21 | 1 | -1/+48 |
| | |||||
* | Turned out that if you used explicit relative import syntax | Brett Cannon | 2010-05-20 | 1 | -0/+12 |
| | | | | | | | | | (e.g. from .os import sep) and it failed, import would still try the implicit relative import semantics of an absolute import (from os import sep). That's not right, so when level is negative, only do explicit relative import semantics. Fixes issue #7902. Thanks to Meador Inge for the patch. | ||||
* | libpython.py: fix support of non-BMP unicode characters | Victor Stinner | 2010-05-20 | 1 | -8/+2 |
| | | | | | | | | Forward port some code from Python3: * join surrogate pairs if sizeof(Py_UNICODE)==2 * Enable non-BMP test on narrow builds using u"\U0001D121" instead of unichr(0x1D121) | ||||
* | #8759: Fixed user paths in sysconfig for posix and os2 schemes | Tarek Ziadé | 2010-05-19 | 1 | -1/+10 |
| | |||||
* | Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included ↵ | Giampaolo Rodolà | 2010-05-18 | 1 | -0/+9 |
| | | | | NameError in the tuple of expected exception; added test case for asyncore._strerror. | ||||
* | Issue #7079: Fix a possible crash when closing a file object while using | Antoine Pitrou | 2010-05-17 | 1 | -1/+11 |
| | | | | it from another thread. Patch by Daniel Stutzbach. | ||||
* | Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close() | Victor Stinner | 2010-05-16 | 1 | -6/+4 |
| | | | | fo is not set if the open() fails. | ||||
* | use TestCase skip method | Benjamin Peterson | 2010-05-15 | 1 | -4/+4 |
| | |||||
* | If the timeout is exceeded, count the tests as skipped instead of just | Stefan Krah | 2010-05-15 | 1 | -6/+4 |
| | | | | issuing a warning. | ||||
* | test_site was failing under darwin for non-framework builds because a test was | Brett Cannon | 2010-05-13 | 1 | -1/+2 |
| | | | | assuming framework-specific site-packages directories were being used. | ||||
* | Revert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot. | Florent Xicluna | 2010-05-13 | 1 | -17/+4 |
| | |||||
* | Improve test feedback to troubleshoot issue #8423 on OS X. | Florent Xicluna | 2010-05-13 | 1 | -4/+17 |
| | |||||
* | Better test skipping, with message in the log. | Florent Xicluna | 2010-05-13 | 1 | -8/+14 |
| |