Commit Graph

21821 Commits

Author SHA1 Message Date
Gregory P. Smith a10ddb8a55 Fixes Issue #16114: The subprocess module no longer provides a
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
2012-10-10 03:44:47 -07:00
Gregory P. Smith 5591b02a4c Fixes Issue #16114: The subprocess module no longer provides a
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.

It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.

The executable is also always reported accurately when exec fails.

Unittests enhanced to cover these cases.
2012-10-10 03:34:47 -07:00
Chris Jerdonek 86b0fb23e5 Issue #16170: Remove Linux skip from test_subprocess's test_executable test. 2012-10-09 13:17:49 -07:00
Benjamin Peterson 455fa0a314 merge heads 2012-10-09 11:16:26 -04:00
Benjamin Peterson b29614e047 compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
2012-10-09 11:16:03 -04:00
Benjamin Peterson a511935151 compare with equality not identity (issue #16172)
Patch from Serhiy Storchaka.
2012-10-09 11:14:59 -04:00
Richard Oudkerk ea69bd3ce1 Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror 2012-10-09 13:28:10 +01:00
Vinay Sajip 7903df4125 Issue #16168: Merged SysLogHandler update from 3.2. 2012-10-09 08:22:01 +01:00
Vinay Sajip b5ca932be2 Issue #16168: Use specified socket type for domain sockets in SysLogHandler. 2012-10-09 08:19:25 +01:00
Chris Jerdonek 2d051b8eaf Issue #16115: Skip a newly added subprocess.Popen() test on Linux. 2012-10-08 17:53:46 -07:00
Chris Jerdonek 776cb199bc Issue #16115: Improve testing of the executable argument to subprocess.Popen(). 2012-10-08 15:56:43 -07:00
Andrew Svetlov 3e5dae0ee2 Merge issue #14900: Add aliases for sorting params for pstat to follow column names from pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 19:19:17 +03:00
Andrew Svetlov c3e5b10ae7 Issue #14900: Add aliases for sorting params for pstat to follow column names from pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 19:18:39 +03:00
Andrew Svetlov a514ea32b2 Merge issue #14900: Distuguish call count and primitive call count in pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 18:59:11 +03:00
Andrew Svetlov 2ef4584e6d Issue #14900: Distuguish call count and primitive call count in pstat output.
Patch by Arne Babenhauserheide.
2012-10-07 18:58:42 +03:00
Eli Bendersky 948af23a77 Issue #15888: fixing problems in ipaddress doctests. Patch by Chris Jerdonek 2012-10-07 07:23:50 -07:00
Andrew Svetlov a2028733ef revert accidental inclusion of subprocess tests 2012-10-06 18:45:47 +03:00
Andrew Svetlov b2209ccfa0 revert accidental inclusion of subprocess tests 2012-10-06 18:45:24 +03:00
Andrew Svetlov 5061a34283 Issue #16025: Minor corrections to the zipfile documentation.
Patch by Serhiy Storchaka.
2012-10-06 18:10:01 +03:00
Andrew Svetlov afbf90c993 Issue #16025: Minor corrections to the zipfile documentation.
Patch by Serhiy Storchaka.
2012-10-06 18:02:05 +03:00
Andrew Svetlov 1a53c0cbf5 Issue #16115: Add test for check that executable arg to Popen() takes precedence over args[0] arg\n \n Patch by Kushal Das 2012-10-05 22:52:15 +03:00
Jesus Cea cb95996fdc MERGE: #16112: platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch 2012-10-05 05:31:31 +02:00
Jesus Cea 685fffa8f4 #16112: platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch 2012-10-05 05:21:42 +02:00
Jesus Cea adc8211e00 #16112: platform.architecture does not correctly escape argument to /usr/bin/file. Use 'communicate()' and decode the bytes 2012-10-05 04:58:38 +02:00
Andrew Svetlov eb0314f5a8 Merge: Issue #14997: disable <F5> in idle shell window.
Thanks to Roger Serwy for patch.
2012-10-04 22:50:13 +03:00
Andrew Svetlov 4ca222d4d5 Issue #14997: disable <F5> in idle shell window.
Thanks to Roger Serwy for patch.
2012-10-04 22:48:34 +03:00
Antoine Pitrou ee329318db Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL). 2012-10-04 19:53:29 +02:00
Jesus Cea 6e1d2b6e78 Closes #16126: PyErr_Format format mismatch in _testcapimodule.c 2012-10-04 16:06:30 +02:00
Jesus Cea e8801e2e44 MERGE: Closes #16112: platform.architecture does not correctly escape argument to /usr/bin/file 2012-10-04 13:56:23 +02:00
Jesus Cea fc990e942f Closes #16112: platform.architecture does not correctly escape argument to /usr/bin/file 2012-10-04 13:51:43 +02:00
R David Murray 258fabefde #11109: clean up docs, add whatsnew entry, and fix Justin's last name. 2012-10-01 21:43:46 -04:00
Stefan Krah 219c7b90d0 Issue #15599: Increase the switch interval. Several systems cannot handle
gil_interval == 1 in extreme situations.
2012-10-01 23:21:45 +02:00
Nadeem Vawda eb70be2b46 Issue #16304: Further optimize BZ2File.readlines?(). 2012-10-01 23:05:32 +02:00
Nadeem Vawda 138ad5066d Fix error handling in new fast path of BZ2File.readline(). 2012-10-01 23:04:11 +02:00
Nadeem Vawda 452add08a1 Issue #16304: Another performance optimization for BZ2File.
Patch by Serhiy Storchaka.
2012-10-01 23:02:50 +02:00
Tim Golden 621302c3f4 Issue16097 Fix small typo in comment (patch by Wael Al Jishi) 2012-10-01 16:40:40 +01:00
Nadeem Vawda b7a0bfe912 Issue #16304: Further performance improvements for BZ2File.
Optimizations suggested by Serhiy Storchaka.
2012-09-30 23:58:01 +02:00
Chris Jerdonek 9a6ada8026 Issue #15533: Merge update from 3.2. 2012-09-30 09:46:04 -07:00
Chris Jerdonek c2cd626497 Issue #15533: Skip test_cwd_with_relative_*() tests on Windows pending resolution of issue. 2012-09-30 09:45:00 -07:00
Nadeem Vawda 9e2a28ea54 Fix the return value of BZ2File._read_block() to be consistent with comments. 2012-09-30 13:41:29 +02:00
Chris Jerdonek 28714c8c26 Issue #15533: Merge fix from 3.2. 2012-09-30 02:15:37 -07:00
Chris Jerdonek ec3ea94251 Issue #15533: Clarify docs and add tests for subprocess.Popen()'s cwd argument. 2012-09-30 00:10:28 -07:00
Nadeem Vawda 6c57318c3a Issue #16034: Fix performance regressions in the new BZ2File implementation.
Thanks to Victor Hooi for the bug report, and Serhiy Storchaka for the initial patch.
2012-09-30 03:57:33 +02:00
Antoine Pitrou 2a180207ba Speed up test_httpservers by avoiding a one-second cleanup wait after each test case. 2012-09-30 01:08:55 +02:00
Antoine Pitrou f727082b71 Speed up test_httpservers by avoiding a one-second cleanup wait after each test case. 2012-09-30 01:05:30 +02:00
Gregory P. Smith 02dee1acd8 Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD
to return a returncode of 0 when the child has already exited or cannot be
waited on.
2012-09-29 11:53:08 -07:00
Gregory P. Smith 3905171f1e Fixes issue #15756: subprocess.poll() now properly handles errno.ECHILD
to return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 11:40:38 -07:00
Benjamin Peterson 14fb44e1ba merge mostly from default 2012-09-29 14:14:19 -04:00
Georg Brandl e054f452bd Fix test_sys.test_implementation for final releases. 2012-09-29 09:44:17 +02:00
Georg Brandl 99a247fd01 Merge with main repo default branch. 2012-09-29 09:27:15 +02:00