summaryrefslogtreecommitdiff
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Replace deprecated fail* methods with the equivalent assert* ones.Ezio Melotti2010-06-051-11/+11
|
* 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 test_py3kwarn not to test for __cmp__-related DeprecationWarning.Mark Dickinson2010-06-051-12/+4
|
* Issue #8627: remove out-of-date warning about overriding __cmp__Mark Dickinson2010-06-051-1/+0
|
* properly lookup the __format__ special methodBenjamin Peterson2010-06-051-0/+3
|
* Issue #6470: Drop UNC prefix in FixTk.pyMartin v. Löwis2010-06-041-0/+25
| | | | 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
|
* #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.
* 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-032-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 sizeLars Gustäbel2010-06-031-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 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-011-1/+0
| | | | 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.
* 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.
* 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-241-0/+7
|
* #8016: add the CP858 codec (approved by Benjamin). (Also add CP720 to the ↵Georg Brandl2010-05-242-4/+6
| | | | tests, it was missing there.)
* Fix default value for version help. Approved by Benjamin on python-dev: ↵Steven Bethard2010-05-241-0/+19
| | | | http://mail.python.org/pipermail/python-dev/2010-May/100231.html
* Issue #6268: More bugfixes about BOM, UTF-16 and UTF-32Victor Stinner2010-05-221-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 Brandl2010-05-221-1/+15
|
* Issue #6268: Fix seek() method of codecs.open(), don't read the BOM twiceVictor Stinner2010-05-221-0/+21
| | | | after seek(0)
* Issue #5640: Fix Shift-JIS incremental encoder for error handlers differentVictor Stinner2010-05-211-0/+4
| | | | than strict
* ensure the last line has a trailing newline #8782Benjamin Peterson2010-05-211-0/+12
|
* fix nameBenjamin Peterson2010-05-211-1/+1
|
* use addCleanupBenjamin Peterson2010-05-211-30/+27
|
* return NotImplemented from Mapping when comparing to a non-mapping #8729Benjamin Peterson2010-05-211-1/+48
|
* Turned out that if you used explicit relative import syntaxBrett Cannon2010-05-201-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 charactersVictor Stinner2010-05-201-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 schemesTarek Ziadé2010-05-191-1/+10
|
* Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included ↵Giampaolo Rodolà2010-05-181-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 usingAntoine Pitrou2010-05-171-1/+11
| | | | it from another thread. Patch by Daniel Stutzbach.
* Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close()Victor Stinner2010-05-161-6/+4
| | | | fo is not set if the open() fails.
* use TestCase skip methodBenjamin Peterson2010-05-151-4/+4
|
* If the timeout is exceeded, count the tests as skipped instead of justStefan Krah2010-05-151-6/+4
| | | | issuing a warning.
* test_site was failing under darwin for non-framework builds because a test wasBrett Cannon2010-05-131-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 Xicluna2010-05-131-17/+4
|
* Improve test feedback to troubleshoot issue #8423 on OS X.Florent Xicluna2010-05-131-4/+17
|
* Better test skipping, with message in the log.Florent Xicluna2010-05-131-8/+14
|