summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module,Victor Stinner2010-07-031-0/+33
| | | | ensure that the input string length is a multiple of the frame size
* don't require the presence of __getformat__ or __setformat__; use ↵Benjamin Peterson2010-07-021-42/+49
| | | | requires_IEEE_754 globally
* an AttributeError is perfectly acceptable hereBenjamin Peterson2010-06-301-1/+1
|
* mark test depending on ref countingBenjamin Peterson2010-06-301-0/+1
|
* Issue #9125: Update parser module for "except ... as ..." syntax.Mark Dickinson2010-06-301-0/+6
|
* Spelling.Mark Dickinson2010-06-291-1/+1
|
* fix skipping conditionBenjamin Peterson2010-06-281-1/+1
|
* testcapi tests are definitely cpython onlyBenjamin Peterson2010-06-281-1/+3
|
* mark tracking tests as implementation detailsBenjamin Peterson2010-06-271-0/+4
|
* Fix indentation in recently added test.R. David Murray2010-06-261-1/+1
|
* #4640: add a test to optparse that proves issue is invalid.R. David Murray2010-06-261-0/+5
|
* mark implementation detail as suchBenjamin Peterson2010-06-251-0/+1
|
* this must be a typoBenjamin Peterson2010-06-251-1/+1
|
* mark implementation detail as suchBenjamin Peterson2010-06-251-0/+1
|
* prevent assignment to set literalsBenjamin Peterson2010-06-241-0/+6
|
* cpython only gc testsBenjamin Peterson2010-06-231-0/+3
|
* mark ref counting as impl detailBenjamin Peterson2010-06-221-4/+3
|
* must force gc hereBenjamin Peterson2010-06-221-1/+3
|
* Fix for issue8446:Ronald Oussoren2010-06-221-1/+7
| | | | | | | | | | * Don't import 'ic' in webbrowser, that module is no longer used * Remove 'MacOS' from the list of modules that should emit a Py3kWarning on import. This is needed because one of the earlier tests triggers and import of this extension, and that causes a failure in test_py3kwarn (running test_py3kwarn separately worked fine) With these changes 'make tests' no longer says that test_py3kwarn fails.
* Merge test_strtod and test_float string-to-float conversion tests.Mark Dickinson2010-06-202-102/+6
|
* Revert r60115Jean-Paul Calderone2010-06-181-2/+0
| | | | | | | | | | | | This revision introduced quoting for strings containing | based on a misunderstanding of the commonly used quoting rules used on Windows. | is interpreted by cmd.exe, not by the MS C runtime argv initializer. It only needs to be quoted if it is part of an argument passed through cmd.exe. See issue1300, issue7839, and issue8972.
* Add few words about test.test_genericpath.CommonTestFlorent Xicluna2010-06-171-0/+3
|
* #8720: fix inspect regression by teaching getsourcefile about linecache.R. David Murray2010-06-171-0/+15
| | | | | | | | | The fix for issue 4050 caused a regression: before that fix, source lines in the linecache would eventually be found by inspect. After the fix inspect reports an error earlier, and the source isn't found. The fix for the fix is to have getsourcefile look in the linecache for the file and return the psuedo-filename if the source is there, just as it already returns it if there is a PEP 302 loader.
* Issue #8986: erfc was raising OverflowError on Linux for arguments inMark Dickinson2010-06-132-0/+47
| | | | | the (approximate) range (-27.3, 30.0), as a result of an escaped errno value.
* Issue #8941: decoding big endian UTF-32 data in UCS-2 builds could crashAntoine Pitrou2010-06-111-0/+25
| | | | | the interpreter with characters outside the Basic Multilingual Plane (higher than 0x10000).
* Fix possible undefined behaviour from signed overflow in struct module.Mark Dickinson2010-06-111-0/+6
| | | | Backport of revisions 81897, 81898 and 81902 from py3k.
* use unicode literalsBenjamin Peterson2010-06-071-3/+3
|
* correctly overflow when indexes are too largeBenjamin Peterson2010-06-071-0/+3
|
* Silence deprecation warning in test___all__ caused by an import bsddb.Ezio Melotti2010-06-071-2/+2
|
* 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.