R. David Murray
fc14114ca9
#11116 : roll back on error during add so mailbox isn't left corrupted.
2011-02-11 22:47:17 +00:00
Senthil Kumaran
2933312fe7
Fixed issue11082 - Reject str for POST data with a TypeError. Document the need to explicitly encode to bytes when using urlencode.
2011-02-11 11:25:47 +00:00
Nick Coghlan
ef3165720a
Issue 10971: Make test_zipimport_support once again compatible with refleak hunting (reviewed by Georg Brandl)
2011-02-07 13:43:07 +00:00
Georg Brandl
4543846517
#11132 : pass optimize parameter to recursive call in compileall.compile_dir(). Reviewed by Eric A.
2011-02-07 12:36:54 +00:00
Georg Brandl
0f6b47a338
#10680 : fix mutually exclusive arguments in argument groups.
2011-01-30 12:19:35 +00:00
Georg Brandl
d2f3857c40
#10961 : fix exception handling in new pydoc server code.
...
Patch by Ron Adam, reviewed by Eric Araujo.
2011-01-30 08:37:19 +00:00
R. David Murray
b7deff1ddc
#9124 : mailbox now accepts binary input and uses binary internally
...
Although this patch contains API changes and is rather weighty for an
RC phase, the mailbox module was essentially unusable without the patch
since it would produce UnicodeErrors when handling non-ascii input
at arbitrary and somewhat mysterious places, and any non-trivial amount
of email processing will encounter messages with non-ascii bytes.
The release manager approved the patch application.
The changes allow binary input, and reject non-ASCII string input early
with a useful message instead of failing mysteriously later. Binary
is used internally for reading and writing the mailbox files. StringIO
and Text file input are deprecated.
Initial patch by Victor Stinner, validated and expanded by R. David Murray.
2011-01-30 06:21:28 +00:00
Alexander Belopolsky
7dabf16f69
Issue #10939 : Make Internaldate2tuple test more robust.
2011-01-29 19:49:40 +00:00
Alexander Belopolsky
19e0a9e511
Issue #10939 : Fixed imaplib.Internaldate2tuple(). Thanks Joe Peterson
...
for the report and the patch. Reviewed by Georg Brandl.
2011-01-29 17:19:08 +00:00
Victor Stinner
80f75e684e
Issue #10989 : Fix a crash on SSLContext.load_verify_locations(None, True).
...
Patch reviewed by Antoine Pitrou, okayed by Georg Brandl.
2011-01-29 11:31:20 +00:00
Eric Smith
a1eac7218b
Issue #11302 : missing type check on _string.formatter_field_name_split and _string.formatter_parser caused crash.
...
Originial patch by haypo, reviewed by me, okayed by Georg.
2011-01-29 11:15:35 +00:00
Antoine Pitrou
528d9f6ead
Issue #11018 : fix a test to not be a no-op in test_bz2.
...
Found by Nadeem Vawda, reviewed by Brett.
2011-01-26 23:29:28 +00:00
Raymond Hettinger
a63a312a3f
Issue #11014 : Make 'filter' argument in tarfile.Tarfile.add() into a
...
keyword-only argument. The preceding positional argument was deprecated,
so it made no sense to add filter as a positional argument.
(Patch reviewed by Brian Curtin and Anthony Long.)
2011-01-26 20:34:14 +00:00
Raymond Hettinger
512d2cc643
Issue #11004 : Repair edge case in deque.count().
...
(Reviewed by Georg Brandl.)
Also made similar changes to deque.reverse() though this wasn't
strictly necessary (the edge case cannot occur with two pointers
moving to meet in the middle). Making the change in reverse()
was more a matter of future-proofing.
2011-01-25 21:32:39 +00:00
Brett Cannon
5543e81352
Tighten the restrictions on the test_sys test which triggers a fatal error when
...
run with tracing turned on.
2011-01-25 18:26:35 +00:00
Benjamin Peterson
d454249a36
another pretty crasher served up by pypy
2011-01-25 00:00:28 +00:00
Steven Bethard
b02701101b
Issue #9509 : make argarse properly handle IOErrors raised by argparse.FileType. Approved by Georg in the tracker.
2011-01-24 21:02:50 +00:00
Raymond Hettinger
bf1d2bc7cb
Make the type consistent for hashlib algorithm constants. (Reviewed by Benjamin).
2011-01-24 04:52:27 +00:00
Brett Cannon
c3e8867a41
Skip a recursion depth check test when running under CPython and have a trace
...
function set. Otherwise a Python fatal error about hitting an unrecoverable
recursion depth gets triggered.
Closes issue #10985 . Code review by Georg Brandl.
2011-01-23 23:06:05 +00:00
Armin Ronacher
59531287fd
To match the behaviour of HTTP server, the HTTP client library now also encodes
...
headers with iso-8859-1 (latin1) encoding. It was already doing that for
incoming headers which makes this behaviour now consistent in both incoming and
outgoing direction.
2011-01-22 13:44:22 +00:00
Armin Ronacher
8d96d77f9a
Issue #10980 : encode headers with latin1 instead of ASCII in the HTTP server.
...
This makes the implementation of PEP 3333 compliant servers on top of
BaseHTTPServer possible.
2011-01-22 13:13:05 +00:00
Antoine Pitrou
305bc9e0e8
Issue #10955 : Fix a potential crash when trying to mmap() a file past its
...
length. Initial patch by Ross Lagerwall.
This fixes a regression introduced by r88022.
2011-01-20 21:07:24 +00:00
Antoine Pitrou
ad62b03949
Issue #10451 : memoryview objects could allow to mutate a readable buffer.
...
Initial patch by Ross Lagerwall.
2011-01-18 18:57:52 +00:00
Antoine Pitrou
d0ebc75e73
Fix mmap and test_mmap under Windows too (followup to r88022)
2011-01-15 17:25:58 +00:00
Antoine Pitrou
85f4615500
Issue #10916 : mmap should not segfault when a file is mapped using 0 as
...
length and a non-zero offset, and an attempt to read past the end of file
is made (IndexError is raised instead). Patch by Ross Lagerwall.
Requested by Georg.
2011-01-15 16:17:07 +00:00
Victor Stinner
5c23b8e6ea
Issue #4953 : cgi.FieldStorage and cgi.parse() parse the request as bytes, not
...
as unicode, and accept binary files. Add encoding and errors attributes to
cgi.FieldStorage.
2011-01-14 13:05:21 +00:00
Victor Stinner
1d87deb605
test_urlparse: add tests for encoding and errors arguments
2011-01-14 13:05:19 +00:00
Antoine Pitrou
1e28513d25
Fix test_bigaddrspace (some tests didn't trigger the expected MemoryError)
2011-01-12 22:02:45 +00:00
Antoine Pitrou
98c62bd1c8
A better message again
2011-01-12 21:58:39 +00:00
Antoine Pitrou
e0d3f8a654
More informative skip message in @bigaddrspace
2011-01-12 21:50:44 +00:00
Antoine Pitrou
9dd1171305
Fix @bigmemtest when no limit is given by the user (oops)
2011-01-12 21:40:20 +00:00
Antoine Pitrou
aca5fa7010
Make test skipping message nicer, and remove the rather useless "overhead" parameter.
2011-01-12 21:19:59 +00:00
Antoine Pitrou
45545f79c9
Fix the expected memory use of utf-8 encoding. Also, release the
...
one reference to a huge object even when an exception is raised.
2011-01-12 20:46:37 +00:00
Antoine Pitrou
318b8f35fe
Issue #10822 : Fix test_posix:test_getgroups failure under Solaris. Patch
...
by Ross Lagerwall.
2011-01-12 18:45:27 +00:00
Benjamin Peterson
477ba919c1
don't segfault on deleting __abstractmethods__ #10892
2011-01-12 15:34:01 +00:00
Benjamin Peterson
5e8dada491
oops, wrong class
2011-01-12 15:25:02 +00:00
Benjamin Peterson
1c02a44023
move this test to test_descr; it's not abc specific
2011-01-12 15:24:27 +00:00
Nick Coghlan
e993b10041
Issue 10889: Support slicing and indexing of large ranges (no docs changes, since, as far as I know, we never said anywhere that this *didn't* work)
2011-01-12 03:15:52 +00:00
Alexander Belopolsky
ef4a03fffe
Issue #5109 : array.array constructor will now use fast code when
...
initial data is provided in an array object with correct type.
2011-01-11 21:44:00 +00:00
Eric Smith
a3e8f3d85f
Typo.
2011-01-11 10:24:34 +00:00
Nick Coghlan
90be5fb817
Issue 10556: test_zipimport_support implicitly imports too many modules (including _ssl) to safely clobber sys.modules after each test
2011-01-11 10:05:20 +00:00
Alexander Belopolsky
a6892418ad
This should fix mktime test on Windows
2011-01-11 02:22:16 +00:00
Alexander Belopolsky
31c5dd6b19
Make mktime test more robust.
2011-01-11 01:35:22 +00:00
Alexander Belopolsky
b7d40d1702
Issue #1726687 : time.mktime() will now correctly compute value one
...
second before epoch. Original patch by Peter Wang, reported by Martin
Blais.
2011-01-11 01:21:25 +00:00
Antoine Pitrou
a4815caa7c
Issue #10872 : The repr() of TextIOWrapper objects now includes the mode
...
if available.
(at Georg's request)
2011-01-09 20:38:15 +00:00
Łukasz Langa
d7e81cc5fa
#10874 : test_urllib2 shouldn't use `is` operator for comparing strings
...
Patch by Adreas Stührk.
2011-01-09 18:18:53 +00:00
Georg Brandl
efb6902c3d
Add missing line.
2011-01-09 07:50:48 +00:00
Georg Brandl
619e7ba814
#10869 : do not visit root node twice in ast.increment_lineno().
2011-01-09 07:38:51 +00:00
Antoine Pitrou
5d938cb366
Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
2011-01-08 10:28:11 +00:00
Antoine Pitrou
160fd938ed
Fix test_ssl after r87849
2011-01-08 10:23:29 +00:00