summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Use transient_internet() where appropriate in test_sslAntoine Pitrou2010-09-091-130/+131
| | | | (svn.python.org is sometimes unavailable)
* Issue #9757: memoryview objects get a release() method to release theAntoine Pitrou2010-09-091-0/+45
| | | | | underlying buffer (previously this was only done when deallocating the memoryview), and gain support for the context management protocol.
* Have pprint() respect the order in an OrderedDict.Raymond Hettinger2010-09-091-0/+16
|
* Add docstring to cmd.Cmd.do_help()Raymond Hettinger2010-09-091-4/+4
|
* Fix issue 9794: adds context manager protocol to socket.socket so that ↵Giampaolo Rodolà2010-09-081-0/+44
| | | | socket.create_connection() can be used with the 'with' statement.
* gdb: fix representation of non-printable surrogate pairs, and workaroundAntoine Pitrou2010-09-081-1/+3
| | | | a bug in ascii().
* Issue #9707: Rewritten reference implementation of threading.local whichAntoine Pitrou2010-09-071-5/+4
| | | | | | is friendlier towards reference cycles. This change is not normally visible since an optimized C implementation (_thread._local) is used instead.
* Also catch some gaierrorsAntoine Pitrou2010-09-071-1/+10
|
* #6394: Add os.getppid() support for Windows.Amaury Forgeot d'Arc2010-09-071-0/+12
|
* Improve transient_internet() again to detect more network errors,Antoine Pitrou2010-09-072-22/+39
| | | | and use it in test_robotparser. Fixes #8574.
* Issue #9792: In case of connection failure, socket.create_connection()Antoine Pitrou2010-09-071-5/+36
| | | | | | would swallow the exception and raise a new one, making it impossible to fetch the original errno, or to filter timeout errors. Now the original error is re-raised.
* Issue #8574: better implementation of test.support.transient_internet().Antoine Pitrou2010-09-072-11/+35
| | | | Original patch by Victor.
* Issue #9758: When fcntl.ioctl() was called with mutable_flag set to True,Antoine Pitrou2010-09-071-5/+26
| | | | | and the passed buffer was exactly 1024 bytes long, the buffer wouldn't be updated back after the system call. Original patch by Brian Brazil.
* Remove invalid test (it was supposed to fail on 64-bit machines.).Raymond Hettinger2010-09-071-4/+0
|
* Fix test that depends on a particular implementation of random.choice().Raymond Hettinger2010-09-071-22/+22
|
* Fix corner case for Random.choice() and add tests.Raymond Hettinger2010-09-071-0/+7
|
* Issues #7889, #9025 and #9379: Improvements to the random module.Raymond Hettinger2010-09-071-1/+9
|
* Document which part of the random module module are guaranteed.Raymond Hettinger2010-09-071-1/+16
|
* Add method to OrderedDict for repositioning keys to the ends.Raymond Hettinger2010-09-061-1/+13
|
* Fix some errors that #7566 introduced on non-Windows platforms due toBrian Curtin2010-09-061-5/+7
| | | | | an ImportError. Rearranged the import, faked out the implementation when the import fails, and reorganized a test that depends on Win32 behavior.
* Issue #5506: BytesIO objects now have a getbuffer() method exporting aAntoine Pitrou2010-09-061-1/+25
| | | | | view of their contents without duplicating them. The view is both readable and writable.
* Implement #7566 - os.path.sameopenfile for Windows.Brian Curtin2010-09-061-0/+13
| | | | | | This uses the GetFileInformationByHandle function to return a tuple of values to identify a file, then ntpath.sameopenfile compares file tuples, which is exposed as os.path.sameopenfile.
* 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
|