summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Clean up the fix to #9324 with some of the suggestions raised on python-devBrian Curtin2010-09-061-3/+2
| | | | | | | in response to the original checkin. Move the validation from the original loop into a switch statement, and adjust a platform check in the tests.
* hashlib has two new constant attributes: algorithms_guaranteed andGregory P. Smith2010-09-061-2/+6
| | | | | | | | algorithms_avaiable that respectively list the names of hash algorithms guaranteed to exist in all Python implementations and the names of hash algorithms available in the current process. Renames the attribute new in 3.2a0 'algorithms' to 'algorithms_guaranteed'.
* Issue #9293: I/O streams now raise `io.UnsupportedOperation` when anAntoine Pitrou2010-09-051-7/+47
| | | | | unsupported operation is attempted (for example, writing to a file open only for reading).
* Fix accidental suppression in r84537v3.2a2Éric Araujo2010-09-051-1/+1
|
* Make naming consistentÉric Araujo2010-09-051-3/+3
|
* Adopt more descriptive attribute names as suggested on python-dev.Raymond Hettinger2010-09-041-9/+9
|
* Issue #8734: Avoid crash in msvcrt.get_osfhandle() when an invalid fileAntoine Pitrou2010-09-041-0/+3
| | | | descriptor is provided. Patch by Pascal Chambon.
* Issue #9777: test_idna requires the "network" resourceAntoine Pitrou2010-09-041-0/+1
|
* Issue #1100562: Fix deep-copying of objects derived from the list and dict ↵Antoine Pitrou2010-09-041-0/+20
| | | | | | types. Patch by Michele Orrù and Björn Lindqvist.
* Issue #9581: Fix non-working PosixGroupsTester test caseAntoine Pitrou2010-09-041-8/+2
| | | | (it only runs as root, which is why nobody bothered about the failure)
* add consistent support for the vars and default arguments on allFred Drake2010-09-041-5/+52
| | | | | configuration parser classes (http://bugs.python.org/issue9421)
* Strengthen BytesWarning tests.Florent Xicluna2010-09-031-45/+54
|
* fromfd exists on Windows nowDaniel Stutzbach2010-09-031-2/+0
|
* Issue 8420: Fix obscure set crashers.Raymond Hettinger2010-09-031-0/+34
|
* fix output from RawConfigParser.write and ConfigParser.write for NoneFred Drake2010-09-031-0/+29
| | | | | | values (http://bugs.python.org/issue7005) (merged r84443 from the release27-mmaint branch, with changes to reflect changes in Python 3)
* Issue #9212: Added the missing isdisjoint method to the dict_keys andDaniel Stutzbach2010-09-021-0/+35
| | | | | dict_items views. The method is required by the collections.Set ABC, which the views register as supporting.
* Issue #9737: Fix a crash when trying to delete a slice or an item fromAntoine Pitrou2010-09-011-0/+9
| | | | a memoryview object.
* Issue #8990: array.fromstring() and array.tostring() get renamed toAntoine Pitrou2010-09-016-19/+57
| | | | | | frombytes() and tobytes(), respectively, to avoid confusion. Furthermore, array.frombytes(), array.extend() as well as the array.array() constructor now accept bytearray objects. Patch by Thomas Jollans.
* Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()Antoine Pitrou2010-09-011-8/+0
| | | | | are now removed, since their effect was inexistent in 3.x (the default encoding is hardcoded to utf-8 and cannot be changed).
* Fix issue #9711: raise ValueError is SSLConnection constructor is invoked ↵Giampaolo Rodolà2010-08-301-7/+12
| | | | with keyfile and not certfile.
* handle names starting with non-ascii characters correctly #9712Benjamin Peterson2010-08-301-0/+13
|
* remove pointless coding cookieBenjamin Peterson2010-08-301-2/+0
|
* dedent some lines in test_ssl so that they are actually executedGiampaolo Rodolà2010-08-291-10/+10
|
* in ssl tests rely on IOError.errno rather thanf IOError.strerror for better ↵Giampaolo Rodolà2010-08-291-7/+17
| | | | compatibility across platforms.
* Fix issue issue9706: provides a better error handling for various SSL operationsGiampaolo Rodolà2010-08-291-2/+18
|
* Issue #1868: Eliminate subtle timing issues in thread-local objects byAntoine Pitrou2010-08-281-1/+61
| | | | getting rid of the cached copy of thread-local attribute dictionary.
* Issue #1512791: In setframerate method of Wave_write, round non-integralMark Dickinson2010-08-281-2/+12
| | | | inputs to the nearest integer. Thanks Neil Tallim for the patch.
* basicsize and itemsize are Py_ssize_t #9688Benjamin Peterson2010-08-251-0/+5
|
* Fix test_sys: set LC_ALL instead of LANGVictor Stinner2010-08-251-3/+4
| | | | | LC_ALL is read before LANG to choose the locale encoding (LC_ALL, LANG and then LC_CTYPE: use the first non empty variable).
* Issue #1027206: getnameinfo is now restricted to numeric addresses as input.Martin v. Löwis2010-08-251-0/+4
|
* Disable test_undecodable_code() of test_sys on WindowsVictor Stinner2010-08-251-0/+6
| | | | This test is irrevelant on Windows
* Fix test_sys for FreeBSD, Solaris and Mac OS XVictor Stinner2010-08-241-2/+15
| | | | | | | _Py_char2wchar() (mbctowcs) decodes b'\xff' to '\xff' on FreeBSD, Solaris and Mac OS X, even if the locale is C (and the locale encoding is ASCII). Patch test_undecodable_code() to support this output and document the two different kinds of outputs.
* Issue 8750: Fixed MutableSet's methods to correctly handle reflexive ↵Daniel Stutzbach2010-08-241-0/+15
| | | | operations, namely x -= x and x ^= x
* only catch AttributeError in hasattr() #9666Benjamin Peterson2010-08-241-5/+6
|
* fix issue 9601: ftplib now provides a workaround for invalid response code ↵Giampaolo Rodolà2010-08-231-0/+12
| | | | returned on MKD and PWD by non-compliant FTPserver implementations such as ISS shipped with Windows server 2003
* cleanup importsBenjamin Peterson2010-08-231-9/+7
|
* run total_ordering() tests, and fix the function (default comparisons ↵Benjamin Peterson2010-08-231-1/+2
| | | | shouldn't be considered)
* Explicitly pass socket type and family for getaddrinfo,Martin v. Löwis2010-08-231-2/+4
| | | | | | to make test work on Solaris. Disable gethostbyaddr IDNA test for now as there is no reverse DNS entry for the IPv6 address of the test name.
* Add an import lock test for multithreaded circular imports.Antoine Pitrou2010-08-221-2/+60
| | | | (part of #9657)
* Mention that gethostbyaddr now also supports IDNA.Martin v. Löwis2010-08-221-0/+1
|
* Issue #1027206: Support IDNA in gethostbyname, gethostbyname_ex andMartin v. Löwis2010-08-221-0/+5
| | | | getaddrinfo. Patch by David Watson.
* Test that calls to path hooks and meta_path entries are serialized by the ↵Antoine Pitrou2010-08-221-7/+79
| | | | | | import lock. (part of issue #9251)
* Issue #9214: Fix set operations on KeysView and ItemsView.Raymond Hettinger2010-08-221-1/+26
|
* Issue #9617: Signals received during a low-level write operation aren'tAntoine Pitrou2010-08-211-1/+74
| | | | ignored by the buffered IO layer anymore.
* Workaround issue #8611 in test_undecodable_code() of test_sysVictor Stinner2010-08-203-31/+36
| | | | | Write test.support.workaroundIssue8611() function so it will be easier to remove this workaround from all tests.
* test_undecodable_code(): set locale to CVictor Stinner2010-08-201-15/+12
| | | | | | | | | | The test is still failing on "x86 FreeBSD 7.2 3.x" and "sparc solaris10 gcc 3.x" buildbots. It looks like the locale encoding is able to decode b'\xff'. I suppose that it is an encoding like 'iso-8859-1'. Use C locale to set, I hope, the locale encoding to 'ascii'. Display also the encoding so if the test fails, at least I will learn the locale encoding choosen for the C locale.
* test_main_invalid_unicode() of test_sys: print string as asciiVictor Stinner2010-08-201-1/+1
| | | | | | | | | There are buildbot failures on "x86 FreeBSD 3.x" and "sparc solaris10 gcc 3.x". I suppose that _Py_char2wchar() doesn't fail even if the locale encoding is unable to decode the byte string, because _Py_char2wchar() has a special mode for platform without mbrtowc() (ISO C99) function. Let's check my theory by avoid error on the Python print() instruction.
* Add tests for r84209 (crashes in the Ast builder)Amaury Forgeot d'Arc2010-08-191-0/+28
| | | | Also remove one tab, and move a check closer to the possible failure.
* test_pep277: display the filename as ascii on failureVictor Stinner2010-08-191-1/+4
|
* Skip test_encodings() of test_os on Windows and Mac OS XVictor Stinner2010-08-191-0/+2
|