Commit graph

18097 commits

Author SHA1 Message Date
Senthil Kumaran
c7ae19b6a7 Issue #3709: a flush_headers method to BaseHTTPRequestHandler which manages the
sending of headers to output stream and flushing the internal headers buffer.
Patch contribution by Andrew Schaaf
2011-05-09 23:25:02 +08:00
Antoine Pitrou
87cf220972 Issue #11743: Rewrite multiprocessing connection classes in pure Python. 2011-05-09 17:04:27 +02:00
Mark Dickinson
df77e3d4a0 Issue #11188: In log2 tests, create powers of 2 using ldexp(1, n) instead of the less reliable 2.0**n. 2011-05-09 14:02:45 +01:00
Victor Stinner
502ff6c920 Issue #10811: Use TestCase.assertRaises() in the new test 2011-05-09 12:50:41 +02:00
Gerhard Haering
936d518dc8 #10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now. 2011-05-09 12:24:09 +02:00
Mark Dickinson
2cffff938b Fix nonunique test ids in math_testcases.txt. 2011-05-09 08:18:57 +01:00
Martin v. Löwis
7c038b4726 merge 11164 2011-05-09 08:12:19 +02:00
Martin v. Löwis
867754e3e3 merge 11164 2011-05-09 08:10:38 +02:00
Martin v. Löwis
2f48d892d4 Stop trying to use _xmlplus in the xml module. Closes #11164.
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:05:43 +02:00
Ezio Melotti
37c02c9697 #11910: merge with 3.2. 2011-05-09 07:30:21 +03:00
Ezio Melotti
19f7ca25e5 #11910: merge with 3.1. 2011-05-09 07:27:20 +03:00
Ezio Melotti
fd69abb358 Some tests were incorrectly marked as C specific. 2011-05-09 07:20:47 +03:00
Ezio Melotti
8269a44d50 #11910: Fix test_heapq to skip the C tests when _heapq is missing. 2011-05-09 07:15:04 +03:00
Ezio Melotti
3843de3b0e #11910: merge with 3.2. 2011-05-09 06:44:36 +03:00
Ezio Melotti
313fa9d365 #11910: merge with 3.1. 2011-05-09 06:43:14 +03:00
Ezio Melotti
199e0857f9 #11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported. 2011-05-09 06:41:55 +03:00
Victor Stinner
fa0e3d52d6 Issue #11888: Add log2 function to math module. Patch written by Mark
Dickinson.
2011-05-09 01:01:09 +02:00
Victor Stinner
3de49192aa Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-09 00:42:58 +02:00
Benjamin Peterson
3a0792da6e merge 3.2 2011-05-08 15:35:09 -05:00
Benjamin Peterson
31dc3735a5 merge 3.1 2011-05-08 15:34:24 -05:00
Benjamin Peterson
262c5827a5 put import_fresh_module in __all__ 2011-05-08 15:32:46 -05:00
Ezio Melotti
845f1526a3 Refactor buggy test to correctly use the msg argument of assertRaises. 2011-05-08 20:23:57 +03:00
Victor Stinner
3a7f0f05c1 Issue #8407: Remove debug code from test_signal
I don't think that we still need it.
2011-05-08 02:10:36 +02:00
Victor Stinner
d49b1f14de Issue #8407: The signal handler writes the signal number as a single byte
instead of a nul byte into the wakeup file descriptor. So it is possible to
wait more than one signal and know which signals were raised.
2011-05-08 02:03:15 +02:00
Victor Stinner
b3e7219abf Issue #8407: Add pthread_kill(), sigpending() and sigwait() functions to the
signal module.
2011-05-08 01:46:11 +02:00
Antoine Pitrou
2407ce1a96 Merge 2011-05-07 19:48:18 +02:00
Antoine Pitrou
6ef5dfdb94 Merge 2011-05-07 19:47:24 +02:00
Antoine Pitrou
4d1cd0a0a0 Merge 2011-05-07 19:45:34 +02:00
Antoine Pitrou
d7f12f30e4 Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented. 2011-05-07 19:42:39 +02:00
Antoine Pitrou
5bcc50c1b5 Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented. 2011-05-07 19:41:33 +02:00
Antoine Pitrou
c1d520634a Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath. 2011-05-07 19:39:37 +02:00
Giampaolo Rodola'
fde86ff673 merge 2011-05-07 19:35:36 +02:00
Giampaolo Rodola'
ffc235cbbf merge with 3.2 2011-05-07 19:11:06 +02:00
Giampaolo Rodola'
24befa87dc merge with 3.1 2011-05-07 19:09:34 +02:00
Giampaolo Rodola'
0b5c21f9c9 #12002 - ftplib's abort() method raises TypeError 2011-05-07 19:03:47 +02:00
Ezio Melotti
8b7664d0b8 #5421: merge with 3.2. 2011-05-07 19:51:47 +03:00
Ezio Melotti
4c1aebd88b #5421: merge with 3.1. 2011-05-07 19:50:28 +03:00
Ezio Melotti
63e4230c38 #5421: add tests. 2011-05-07 19:47:48 +03:00
Giampaolo Rodola'
842e567530 reverting 9688977ef567 committed by accident 2011-05-07 18:47:31 +02:00
Vinay Sajip
fd28502fcf Closed resource leak in SysLogHandler. 2011-05-07 17:01:22 +01:00
Ezio Melotti
9c18778695 #12017: merge with 3.2. 2011-05-07 18:29:14 +03:00
Ezio Melotti
06383ee090 #12017: merge with 3.1. 2011-05-07 18:15:34 +03:00
Giampaolo Rodola'
dbf0454082 test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in. 2011-05-07 17:08:34 +02:00
Giampaolo Rodola'
e9514b877b merge heads 2011-05-07 17:08:04 +02:00
Giampaolo Rodola'
b28e09421d test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in. 2011-05-07 17:02:21 +02:00
Ezio Melotti
362b95102f #12017: Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations. 2011-05-07 17:58:09 +03:00
Vinay Sajip
b37cd39202 Changed where socket close is called on connection failure. 2011-05-07 15:55:47 +01:00
Giampaolo Rodola'
a55efb3b6f #11072- applying http://bugs.python.org/review/11072/show suggestions 2011-05-07 16:06:59 +02:00
Vinay Sajip
052a899d5a Merge. 2011-05-07 13:44:50 +01:00
Vinay Sajip
2261b325ab Close socket on connection failure. 2011-05-07 13:44:11 +01:00