Commit graph

49387 commits

Author SHA1 Message Date
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
65b7eff7c7 _PyImport_LoadDynamicModule() encodes the module name explicitly to ASCII
The name must be encodable to ASCII because dynamic module must have a function
called "PyInit_NAME", they are written in C, and the C language doesn't accept
non-ASCII identifiers.
2011-05-07 12:46:05 +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
Victor Stinner
c925617b54 faulthandler: save/restore errno in the two signal handlers 2011-05-07 12:20:11 +02:00
Ronald Oussoren
97c3eb4ed5 Closes Issue 11916: Add a number of MacOSX specific definitions to the errno module.
Patch by Pierre Carrier.
2011-05-07 09:59:03 +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
Giampaolo Rodola'
d78def9474 Issue #11072: added MLSD command (RFC-3659) support to ftplib. 2011-05-06 19:49:08 +02:00
Antoine Pitrou
0872816dc1 Issue #8808: The IMAP4_SSL constructor now allows passing an SSLContext
parameter to control parameters of the secure channel.  Patch by Sijin
Joseph.
2011-05-06 18:49:52 +02:00
Ronald Oussoren
45fd0c9931 merge from 3.2 2011-05-06 17:11:44 +02:00
Ronald Oussoren
6355c16d36 ntpath.samefile fails to detect that "A.TXT" and "a.txt" refer to the same file on Windows XP.
Noticed while researching a buildbot failure due to a patch for issue #10684.
2011-05-06 17:11:07 +02:00
Antoine Pitrou
ff9bfca482 Issue #12000: When a SSL certificate has a subjectAltName without any
dNSName entry, ssl.match_hostname() should use the subject's commonName.
Patch by Nicolas Bareil.
2011-05-06 15:20:55 +02:00
Antoine Pitrou
1c86b44506 Issue #12000: When a SSL certificate has a subjectAltName without any
dNSName entry, ssl.match_hostname() should use the subject's commonName.
Patch by Nicolas Bareil.
2011-05-06 15:19:49 +02:00
Ezio Melotti
b4dc2502ad Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex now accept a keyword argument 'msg' when used as context managers. Initial patch by Winston Ewert. 2011-05-06 15:01:41 +03:00
Ronald Oussoren
136148e97d merge from 3.2 2011-05-06 11:17:40 +02:00
Ronald Oussoren
78349b06af merge from 3.1 2011-05-06 10:57:22 +02:00
Ronald Oussoren
f51738b10e Fix for issue 10684: Folders get deleted when trying to change case with shutil.move (case insensitive file systems only) 2011-05-06 10:23:04 +02:00
Eli Bendersky
f804f3a507 merge 2011-05-06 09:31:02 +03:00
Eli Bendersky
e168965bd0 Issue #11015: bring test.support docs up to date 2011-05-06 09:29:27 +03:00
Vinay Sajip
89c8862ee5 Close handler opened in test. 2011-05-06 07:19:41 +01:00
Raymond Hettinger
1c7b7f7fbe Userlist.copy() wasn't returning a UserList. 2011-05-05 14:34:35 -07:00
Raymond Hettinger
7b48432a77 merge 2011-05-05 14:16:16 -07:00
Raymond Hettinger
474ee6c8d0 null merge 2011-05-05 14:15:44 -07:00
Raymond Hettinger
8cd2e5f751 Sync-up minor code edits with the default branch. 2011-05-05 14:15:12 -07:00
Vinay Sajip
28338fbdba Added additional output to help diagnose buildbot failures. 2011-05-05 21:23:42 +01:00
Raymond Hettinger
2c0d721663 null merge 2011-05-05 11:50:36 -07:00
Raymond Hettinger
102d874999 Sync-up minor code edits with the default branch. 2011-05-05 11:49:12 -07:00
Raymond Hettinger
7c5dc912ba Avoid codec spelling issues by just using the utf-8 default. 2011-05-05 11:38:06 -07:00
Raymond Hettinger
f90ba8a9a2 Avoid codec spelling issues by just using the utf-8 default. 2011-05-05 11:35:50 -07:00
Antoine Pitrou
b596dc7c86 Merge: Use shared testing facilities in test_threading 2011-05-05 20:18:19 +02:00
Antoine Pitrou
c4d7864e0e Use shared testing facilities in test_threading 2011-05-05 20:17:32 +02:00
R David Murray
a4433ee300 Merge: #11873: Improve test regex so random directory names don't cause test to fail 2011-05-05 12:17:50 -04:00
R David Murray
66a18fd801 #11873: Improve test regex so random directory names don't cause test to fail 2011-05-05 11:52:44 -04:00
Nick Coghlan
cb395187d0 Merge from 3.2 2011-05-06 00:03:49 +10:00
Nick Coghlan
fdc2c5596e Remove trailing whitespace 2011-05-06 00:02:12 +10:00
Nick Coghlan
7ceb1804b0 Merge #11647 update from 3.2 2011-05-05 23:58:57 +10:00
Nick Coghlan
0ded3e307b Issue #11647: allow contextmanager objects to be used as decorators as described in the docs. Initial patch by Ysj Ray. 2011-05-05 23:49:25 +10:00
Vinay Sajip
e9a56e8d49 Tweaked timed rollover test to allow for test-time delays. 2011-05-05 14:18:33 +01:00
Vinay Sajip
6c9f8c7e4c Merged changes. 2011-05-05 12:59:59 +01:00
Vinay Sajip
0372e10684 Improved coverage and fixed bug in HTTPHandler with POST requests. 2011-05-05 12:59:14 +01:00
Ezio Melotti
868fc87591 #11997: merge with 3.2. 2011-05-05 14:21:55 +03:00
Ezio Melotti
f77b74dd1b #11997: merge with 3.1. 2011-05-05 14:21:18 +03:00