Commit graph

85159 commits

Author SHA1 Message Date
Gregory P. Smith
f2538e1bae Skip test_subprocess test_close_fds_when_max_fd_is_lowered on FreeBSD
when fdescfs is not mounted on /dev/fd.
2014-06-01 15:28:11 -07:00
Gregory P. Smith
d04f699498 Skip test_subprocess test_close_fds_when_max_fd_is_lowered on FreeBSD
when fdescfs is not mounted on /dev/fd.
2014-06-01 15:27:28 -07:00
Gregory P. Smith
69b778df5d Attempt to fix the "too many open files" errors on several of the
buildbots that the new test_close_fds_when_max_fd_is_lowered test causes.
It now leaves 10 more low fd's available.
2014-06-01 15:16:16 -07:00
Gregory P. Smith
8fed4deb44 Attempt to fix the "too many open files" errors on several of the
buildbots that the new test_close_fds_when_max_fd_is_lowered test causes.
It now leaves 10 more low fd's available.
2014-06-01 15:15:44 -07:00
Gregory P. Smith
45f31d1492 merge the end_fd comment fix and explicit wait() for the child. 2014-06-01 13:47:34 -07:00
Gregory P. Smith
ffd529cde1 Explicitly wait for the child instead of letting a destructor do it. 2014-06-01 13:46:54 -07:00
Gregory P. Smith
a26987a0a5 Fix the comment to not refer to the removed end_fd parameter. 2014-06-01 13:46:36 -07:00
Gregory P. Smith
3fe9e8d5a5 Don't restrict ourselves to a "max" fd when closing fds before exec()
when we have a way to get an actual list of all open fds from the OS.

Fixes issue #21618: The subprocess module would ignore fds that were
inherited by the calling process and already higher than POSIX resource
limits would otherwise allow.  On systems with a functioning /proc/self/fd
or /dev/fd interface the max is now ignored and all fds are closed.
2014-06-01 13:22:12 -07:00
Gregory P. Smith
d4dcb70287 Don't restrict ourselves to a "max" fd when closing fds before exec()
when we have a way to get an actual list of all open fds from the OS.

Fixes issue #21618: The subprocess module would ignore fds that were
inherited by the calling process and already higher than POSIX resource
limits would otherwise allow.  On systems with a functioning /proc/self/fd
or /dev/fd interface the max is now ignored and all fds are closed.
2014-06-01 13:18:28 -07:00
Serhiy Storchaka
3ffa7ab2ef Issue #21605: Added tests for Tkinter images. 2014-06-01 12:36:39 +03:00
Serhiy Storchaka
694c3153b0 Issue #21605: Added tests for Tkinter images. 2014-06-01 12:34:56 +03:00
Serhiy Storchaka
05ef4d3ead Added missed calls of splitlist(). 2014-06-01 11:22:21 +03:00
Serhiy Storchaka
8381f90ee0 Added missed calls of splitlist(). 2014-06-01 11:21:55 +03:00
Gregory P. Smith
7be74cffbe Remove the obsolete MAXFD constant and Popen._close_fds() method.
They should have been removed years ago when removing the old pure
Python implementation from the file.
2014-06-01 00:33:35 -07:00
Terry Jan Reedy
d3e50be6d0 Merge with 3.4 2014-06-01 00:30:55 -04:00
Terry Jan Reedy
078b8a81b1 Issue #21477: Update htest docstring and remove extraneous differences between
2.7 and 3.4. Original patch by Saimadhav Heblikar.
2014-06-01 00:30:34 -04:00
Benjamin Peterson
da30b46e57 merge 3.4 2014-05-31 13:17:15 -07:00
Benjamin Peterson
a8195770fa give the correct fixer name (closes #21604) 2014-05-31 13:16:49 -07:00
Vinay Sajip
1feedb43be Closes #21583: Improved test_logging. Thanks to Diana Joan Clarke for the patch. 2014-05-31 08:19:12 +01:00
Ned Deily
d53c41eacc Issue #21572: Change license command to fallback to generic license URL. 2014-05-30 23:47:41 -07:00
Ned Deily
5f8784b7cc Issue #21572: Change license command to fallback to generic license URL. 2014-05-30 23:46:19 -07:00
Brett Cannon
42535f0104 Fix a parameter name to make sense again 2014-05-30 16:28:00 -04:00
Terry Jan Reedy
069c87bee4 Merge with 3.4 2014-05-30 16:20:25 -04:00
Terry Jan Reedy
0edb5c1668 Issue #21593: (from StackOverflow) minor doc clarification for re.search. 2014-05-30 16:19:59 -04:00
Brett Cannon
2a17bde930 Issue #20383: Introduce importlib.util.module_from_spec().
Along the way, dismantle importlib._bootstrap._SpecMethods as it was
no longer relevant and constructing the new function required
partially dismantling the class anyway.
2014-05-30 14:55:29 -04:00
Vinay Sajip
c8f0d6ebfc Closes #21608: Merged documentation update from 3.4. 2014-05-30 19:04:08 +01:00
Vinay Sajip
c673a9ab87 Issue #21608: Updated HTTPHandler documentation. 2014-05-30 18:59:27 +01:00
Brett Cannon
fd4d0504df Move import.c to use Clinic file output. 2014-05-30 11:21:14 -04:00
Serhiy Storchaka
17158306d8 Test correct getXXX methods in Tkinter bigmem tests.
Tk.getint is just int, true Tk wrapper is available as Tk.tk.getint.
2014-05-30 15:55:12 +03:00
Serhiy Storchaka
aecfa9ead9 Test correct getXXX methods in Tkinter bigmem tests.
Tk.getint is just int, true Tk wrapper is available as Tk.tk.getint.
2014-05-30 15:54:35 +03:00
Serhiy Storchaka
1753d2255e Issue #21552: Fixed possible integer overflow of too long string lengths in
the tkinter module on 64-bit platforms.
2014-05-30 14:25:22 +03:00
Serhiy Storchaka
79851d755b Issue #21552: Fixed possible integer overflow of too long string lengths in
the tkinter module on 64-bit platforms.
2014-05-30 14:24:03 +03:00
Serhiy Storchaka
88c56cbba5 Add tests for getint, getdouble and getboolean methods of the tkapp object. 2014-05-30 14:08:49 +03:00
Serhiy Storchaka
9f1f4f40e4 Add tests for getint, getdouble and getboolean methods of the tkapp object. 2014-05-30 14:07:38 +03:00
Raymond Hettinger
35db43955c Issue #13742: Add key and reverse parameters to heapq.merge() 2014-05-30 02:28:36 -07:00
Gregory P. Smith
e7bfe13635 Fix issue #14315: The zipfile module now ignores extra fields in the central
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:42:47 -07:00
Gregory P. Smith
0af8a86be8 Fix issue #14315: The zipfile module now ignores extra fields in the central
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:42:14 -07:00
Eric Snow
12c5247be9 Issue #21226: Merge from 3.4. 2014-05-29 12:32:39 -06:00
Eric Snow
58cfdd8af8 Issue #21226: fix a ref leak. 2014-05-29 12:31:39 -06:00
Terry Jan Reedy
679a2feb80 Merge with 3.4 2014-05-29 01:46:48 -04:00
Terry Jan Reedy
2e8234a597 Issue #21477: Add htests for GrepDialog, UndoDelegator, and configDialog.
Put instructions in a fixed size scrollable Text. Patch by Saimadhav Heblikar.
2014-05-29 01:46:26 -04:00
Victor Stinner
7434ed7b6a (Merge 3.4) Issue #21454: Fix asyncio.BaseEventLoop.connect_read_pipe doc
The function sets the the pipe to non-blocking mode.
2014-05-29 00:19:09 +02:00
Victor Stinner
a5b257af22 Issue #21454: Fix asyncio.BaseEventLoop.connect_read_pipe doc
The function sets the the pipe to non-blocking mode.
2014-05-29 00:14:03 +02:00
Victor Stinner
a1a4ddf0a7 (Merge 3.4) Issue #21376: document asyncio.TimeoutError 2014-05-29 00:05:13 +02:00
Victor Stinner
28d0ae48e9 Issue #21376: document asyncio.TimeoutError 2014-05-29 00:04:57 +02:00
Serhiy Storchaka
20ed56c282 Restore performance of some dumb database methods (regression introduced by #19385). 2014-05-28 18:50:12 +03:00
Serhiy Storchaka
12c575f2f6 Restore performance of some dumb database methods (regression introduced by #19385). 2014-05-28 18:49:52 +03:00
Serhiy Storchaka
24604d5b4e Issue #21402: tkinter.ttk now works when default root window is not set. 2014-05-28 18:42:05 +03:00
Serhiy Storchaka
b49eff25b7 Issue #21402: tkinter.ttk now works when default root window is not set. 2014-05-28 18:38:27 +03:00
Serhiy Storchaka
af984de923 Issue #21493: Added test for ntpath.expanduser(). Original patch by
Claudiu Popa.
2014-05-28 18:14:03 +03:00