Commit Graph

7241 Commits

Author SHA1 Message Date
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
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