Antoine Pitrou
0d739d7047
Issue #9293 : I/O streams now raise `io.UnsupportedOperation` when an
...
unsupported operation is attempted (for example, writing to a file open
only for reading).
2010-09-05 23:01:12 +00:00
Éric Araujo
1138eba3df
Fix accidental suppression in r84537
2010-09-05 18:59:49 +00:00
Éric Araujo
23eae8646c
Make naming consistent
2010-09-05 18:43:07 +00:00
Raymond Hettinger
02566ec89f
Adopt more descriptive attribute names as suggested on python-dev.
2010-09-04 22:46:06 +00:00
Antoine Pitrou
0049249d63
Issue #8734 : Avoid crash in msvcrt.get_osfhandle() when an invalid file
...
descriptor is provided. Patch by Pascal Chambon.
2010-09-04 20:53:29 +00:00
Antoine Pitrou
d9107aaded
Issue #9777 : test_idna requires the "network" resource
2010-09-04 18:50:35 +00:00
Antoine Pitrou
3941a8fece
Issue #1100562 : Fix deep-copying of objects derived from the list and dict types.
...
Patch by Michele Orrù and Björn Lindqvist.
2010-09-04 17:40:21 +00:00
Antoine Pitrou
e5a9101519
Issue #9581 : Fix non-working PosixGroupsTester test case
...
(it only runs as root, which is why nobody bothered about the failure)
2010-09-04 17:32:06 +00:00
Fred Drake
cc645b9a59
add consistent support for the vars and default arguments on all
...
configuration parser classes
(http://bugs.python.org/issue9421 )
2010-09-04 04:35:34 +00:00
Florent Xicluna
edf5f0ddc0
Strengthen BytesWarning tests.
2010-09-03 20:00:37 +00:00
Daniel Stutzbach
06a3c8ae82
fromfd exists on Windows now
2010-09-03 11:11:43 +00:00
Raymond Hettinger
faf7b7f4ec
Issue 8420: Fix obscure set crashers.
2010-09-03 10:00:50 +00:00
Fred Drake
8844441ae6
fix output from RawConfigParser.write and ConfigParser.write for None
...
values (http://bugs.python.org/issue7005 )
(merged r84443 from the release27-mmaint branch, with changes to reflect
changes in Python 3)
2010-09-03 04:22:36 +00:00
Daniel Stutzbach
045b3ba184
Issue #9212 : Added the missing isdisjoint method to the dict_keys and
...
dict_items views. The method is required by the collections.Set ABC,
which the views register as supporting.
2010-09-02 15:06:06 +00:00
Antoine Pitrou
e0793ba992
Issue #9737 : Fix a crash when trying to delete a slice or an item from
...
a memoryview object.
2010-09-01 21:14:16 +00:00
Antoine Pitrou
1ce3eb5c5b
Issue #8990 : array.fromstring() and array.tostring() get renamed to
...
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.
2010-09-01 20:29:34 +00:00
Antoine Pitrou
fce7fd6426
Issue #9549 : sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()
...
are now removed, since their effect was inexistent in 3.x (the default
encoding is hardcoded to utf-8 and cannot be changed).
2010-09-01 18:54:56 +00:00
Giampaolo Rodolà
8b7da623ce
Fix issue #9711 : raise ValueError is SSLConnection constructor is invoked with keyfile and not certfile.
2010-08-30 18:28:05 +00:00
Benjamin Peterson
33856de84d
handle names starting with non-ascii characters correctly #9712
2010-08-30 14:41:20 +00:00
Benjamin Peterson
e992a7da01
remove pointless coding cookie
2010-08-30 13:57:28 +00:00
Giampaolo Rodolà
4a656ebe05
dedent some lines in test_ssl so that they are actually executed
2010-08-29 22:50:39 +00:00
Giampaolo Rodolà
cd9dfb919a
in ssl tests rely on IOError.errno rather thanf IOError.strerror for better compatibility across platforms.
2010-08-29 20:56:56 +00:00
Giampaolo Rodolà
745ab3807e
Fix issue issue9706: provides a better error handling for various SSL operations
2010-08-29 19:25:49 +00:00
Antoine Pitrou
1a9a9d5433
Issue #1868 : Eliminate subtle timing issues in thread-local objects by
...
getting rid of the cached copy of thread-local attribute dictionary.
2010-08-28 18:17:03 +00:00
Mark Dickinson
64a38c0eb5
Issue #1512791 : In setframerate method of Wave_write, round non-integral
...
inputs to the nearest integer. Thanks Neil Tallim for the patch.
2010-08-28 17:22:16 +00:00
Benjamin Peterson
0e10206f2c
basicsize and itemsize are Py_ssize_t #9688
2010-08-25 23:13:17 +00:00
Victor Stinner
ef6ff662c9
Fix test_sys: set LC_ALL instead of LANG
...
LC_ALL is read before LANG to choose the locale encoding (LC_ALL, LANG and then
LC_CTYPE: use the first non empty variable).
2010-08-25 08:33:34 +00:00
Martin v. Löwis
112c0f3411
Issue #1027206 : getnameinfo is now restricted to numeric addresses as input.
2010-08-25 07:38:15 +00:00
Victor Stinner
1970b62aee
Disable test_undecodable_code() of test_sys on Windows
...
This test is irrevelant on Windows
2010-08-25 00:20:27 +00:00
Victor Stinner
ebe53a23c9
Fix test_sys for FreeBSD, Solaris and Mac OS X
...
_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.
2010-08-24 23:05:51 +00:00
Daniel Stutzbach
31da5b2f69
Issue 8750: Fixed MutableSet's methods to correctly handle reflexive operations, namely x -= x and x ^= x
2010-08-24 20:49:57 +00:00
Benjamin Peterson
17689991e6
only catch AttributeError in hasattr() #9666
2010-08-24 03:26:23 +00:00
Giampaolo Rodolà
bbc4782d77
fix issue 9601: ftplib now provides a workaround for invalid response code returned on MKD and PWD by non-compliant FTPserver implementations such as ISS shipped with Windows server 2003
2010-08-23 22:10:32 +00:00
Benjamin Peterson
076e031e54
cleanup imports
2010-08-23 21:58:59 +00:00
Benjamin Peterson
9c2930e4be
run total_ordering() tests, and fix the function (default comparisons shouldn't be considered)
2010-08-23 17:40:33 +00:00
Martin v. Löwis
67e91ad9cf
Explicitly pass socket type and family for getaddrinfo,
...
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.
2010-08-23 15:27:26 +00:00
Antoine Pitrou
0723d2c78d
Add an import lock test for multithreaded circular imports.
...
(part of #9657 )
2010-08-22 20:43:26 +00:00
Martin v. Löwis
56773cf0d2
Mention that gethostbyaddr now also supports IDNA.
2010-08-22 19:38:04 +00:00
Martin v. Löwis
fc0275a14a
Issue #1027206 : Support IDNA in gethostbyname, gethostbyname_ex and
...
getaddrinfo. Patch by David Watson.
2010-08-22 19:33:47 +00:00
Antoine Pitrou
7224d073d2
Test that calls to path hooks and meta_path entries are serialized by the import lock.
...
(part of issue #9251 )
2010-08-22 10:18:36 +00:00
Raymond Hettinger
9117c75148
Issue #9214 : Fix set operations on KeysView and ItemsView.
2010-08-22 07:44:24 +00:00
Antoine Pitrou
b46b9d59ef
Issue #9617 : Signals received during a low-level write operation aren't
...
ignored by the buffered IO layer anymore.
2010-08-21 19:09:32 +00:00
Victor Stinner
c44abb127b
Workaround issue #8611 in test_undecodable_code() of test_sys
...
Write test.support.workaroundIssue8611() function so it will be easier to
remove this workaround from all tests.
2010-08-20 16:52:14 +00:00
Victor Stinner
1b6372a1d1
test_undecodable_code(): set locale to C
...
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.
2010-08-20 16:38:14 +00:00
Victor Stinner
e6376f8849
test_main_invalid_unicode() of test_sys: print string as ascii
...
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.
2010-08-20 11:08:18 +00:00
Amaury Forgeot d'Arc
12844e6df6
Add tests for r84209 (crashes in the Ast builder)
...
Also remove one tab, and move a check closer to the possible failure.
2010-08-19 21:32:38 +00:00
Victor Stinner
5c1808a1a8
test_pep277: display the filename as ascii on failure
2010-08-19 17:35:00 +00:00
Victor Stinner
114b724a4b
Skip test_encodings() of test_os on Windows and Mac OS X
2010-08-19 17:22:57 +00:00
Victor Stinner
515ca2047d
test_main_invalid_unicode() of test_sys displays stderr on failure
2010-08-19 17:18:12 +00:00
Victor Stinner
38430e2dff
Fix os.get_exec_path() (code and tests) for python -bb
...
Catch BytesWarning exceptions.
2010-08-19 17:10:18 +00:00