Commit graph

9705 commits

Author SHA1 Message Date
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'
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
Giampaolo Rodola'
a55efb3b6f #11072- applying http://bugs.python.org/review/11072/show suggestions 2011-05-07 16:06:59 +02:00
Nadeem Vawda
da91d1892a Merge: Fix potential resource leak in test_mmap. 2011-05-07 14:36:14 +02:00
Nadeem Vawda
b0b0579625 Merge: Fix potential resource leak in test_mmap. 2011-05-07 14:35:36 +02:00
Nadeem Vawda
7420b70240 Fix potential resource leak in test_mmap. 2011-05-07 14:35:05 +02:00
Nadeem Vawda
ce79230173 Merge: #11277: Fix tests - crash will not trigger if the file is closed and reopened. 2011-05-07 14:17:27 +02:00
Nadeem Vawda
044dfadd1c Merge: #11277: Fix tests - crash will not trigger if the file is closed and reopened. 2011-05-07 14:16:50 +02:00
Nadeem Vawda
909f6d2fba Issue #11277: Fix tests - crash will not trigger if the file is closed and reopened. 2011-05-07 14:14:53 +02:00
Nadeem Vawda
02e6569628 Merge: #11277: Add tests for mmap crash when using large sparse files on OS X.
Also, reduce code duplication in LargeMmapTests.

Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:11:59 +02:00
Nadeem Vawda
c2bb073742 Merge: #11277: Add tests for mmap crash when using large sparse files on OS X.
Also, reduce code duplication in LargeMmapTests.

Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:08:54 +02:00
Nadeem Vawda
ced1056925 Issue #11277: Add tests for mmap crash when using large sparse files on OS X.
Also, reduce code duplication in LargeMmapTests.

Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:01:50 +02:00
Victor Stinner
7bba62fd68 faulthandler: dump all threads by default
* Set the default value of all_threads arguments to True
 * Py_FatalError() dumps all threads, instead of only the current thread

Dump only the current thread is not reliable. In some cases, Python is unable
to retrieve the state of the current thread and so is unable to dump the
traceback. faulthandler keeps a reference to the interpreter and so is always
able to dump the traceback of all threads.
2011-05-07 12:43:00 +02:00
R David Murray
46070ebddf #11999: sync based on comparing mtimes, not mtime to system clock 2011-05-06 22:26:27 -04:00
R David Murray
94b8ee3bff #11999: sync based on comparing mtimes, not mtime to system clock 2011-05-06 22:20:34 -04:00
R David Murray
caed7fe0ff #11999: sync based on comparing mtimes, not mtime to system clock 2011-05-06 22:07:19 -04:00
Vinay Sajip
a6bbbe43ef Refined rollover test for slow test machines. 2011-05-06 19:06:00 +01:00