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
Antoine Pitrou
67b212e608
Issue #10859 : Make `contextlib.GeneratorContextManager` officially
...
private by renaming it to `_GeneratorContextManager`.
2011-01-08 09:55:31 +00:00
Raymond Hettinger
23f9fc3448
Issue #10042 : Fixed the total_ordering decorator to handle cross-type
...
comparisons that could lead to infinite recursion.
2011-01-08 07:01:56 +00:00
Victor Stinner
f332abbf15
test_ssl: test SHA256 using sha256.tbs-internet.com instead of sha2.hboeck.de
2011-01-08 03:16:05 +00:00
Victor Stinner
301f1217ac
Issue #1777412 : Remove all limits on tm_year from time.strftime()
...
The buildbots will tell us which platform does support or not negative years.
2011-01-08 03:06:52 +00:00
Victor Stinner
af5aee57c9
Issue #1777412 : fix test_time for Mac OS X and OpenIndiana
2011-01-08 02:46:33 +00:00
Victor Stinner
736913269e
Issue #1777412 : test large years value for strftime('%Y')
2011-01-08 02:00:24 +00:00
Victor Stinner
73ea29cb03
Issue #1777412 : strftime() accepts year >= 1 instead of year >= 1900
...
* With Visual Studio, year have to be in [1; 9999]
* Add more tests on the year field
2011-01-08 01:56:31 +00:00
Alexander Belopolsky
0dd06f4082
Fixed error handling branches. Thanks
...
Victor Stinner for pointing this out.
2011-01-08 01:23:02 +00:00
Alexander Belopolsky
b8bb4664fc
Issue #1777412 : extended year range of strftime down to 1000.
2011-01-08 00:13:34 +00:00
Alexander Belopolsky
c64708ae48
Issue #10827 : Changed the rules for 2-digit years. The time.asctime
...
function will now format any year when time.accept2dyear is false and
will accept years >= 1000 otherwise. The year range accepted by
time.mktime and time.strftime is still system dependent, but
time.mktime will now accept full range supported by the OS. Conversion
of 2-digit years to 4-digit is deprecated.
2011-01-07 19:59:19 +00:00
Brett Cannon
63eef1e0dd
Get --coverage to be an acceptable flag for test.regrtest again.
2011-01-06 22:32:41 +00:00
Alexander Belopolsky
610e544bf7
Further simplify gettmarg()
2011-01-06 21:57:06 +00:00
Antoine Pitrou
b715fac819
Issue #3839 : wsgiref should not override a Content-Length header set by
...
the application. Initial patch by Clovis Fabricio.
2011-01-06 17:17:04 +00:00
Antoine Pitrou
ca023cab4d
Issue #1677694 : Refactor and improve test_timeout. Original patch by
...
Björn Lindqvist.
2011-01-06 09:05:22 +00:00
Raymond Hettinger
7beae8a0d5
Issue 10825: Minor updates to the test suite.
2011-01-06 05:34:17 +00:00