summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
...
* The SIGINT signal may happen earlier, during site.py initialization.Florent Xicluna2010-03-231-4/+1
|
* The standard error should be empty when the signal is killed, except on SIGINT.Florent Xicluna2010-03-231-2/+8
|
* Silence test_subprocess.Florent Xicluna2010-03-231-24/+12
|
* Revert r78830: realpath() should really be applied to sys.executable.Florent Xicluna2010-03-111-1/+1
|
* Fix the test_subprocess failure when sys.executable is meaningless: '' or a ↵Florent Xicluna2010-03-111-1/+1
| | | | | | directory. It does not fix #7774.
* Replace the stderr logging with assertNotEqual(returncode, 0).Florent Xicluna2010-03-081-4/+2
|
* #2777: Try hard to make Win7 buildbot happy...Florent Xicluna2010-03-071-2/+3
|
* Do not fail if returncode is 0 on send_signal/kill/terminate, for win32 ↵Florent Xicluna2010-03-071-39/+44
| | | | | | platforms. Do not hide the KeyboardInterrupt on POSIX platforms.
* #2777: Enable test_send_signal, test_terminate and test_kill on win32 platforms.Florent Xicluna2010-03-071-3/+0
|
* Skip test_send_signal, test_kill, test_terminate on win32 platforms, for ↵Florent Xicluna2010-03-061-5/+11
| | | | 2.7a4 release.
* #2777: Apply same recipe on win32, i.e. do not inherit file handles.Florent Xicluna2010-03-061-3/+5
|
* #2777: Apply same recipe for test_terminate and test_kill, i.e. close or ↵Florent Xicluna2010-03-061-2/+4
| | | | redirect fds.
* #2777: Handle fds more carefully to try to fix some x86-Linux failures ↵Florent Xicluna2010-03-051-3/+6
| | | | (namely, neal bot and twisted bot).
* These line should not be there.Florent Xicluna2010-03-051-1/+0
|
* Let's use assertIsNone / assertIsNotNone. It's hype.Florent Xicluna2010-03-051-5/+5
|
* Workaround #3137: Retry SIGINT if it is not received the first time.Florent Xicluna2010-03-051-2/+13
| | | | test_send_signal should not hang anymore on various Linux distributions.
* #2777: Enable test_send_signal, test_kill and test_terminate on all platforms.Florent Xicluna2010-03-041-6/+20
|
* Cleanup.Florent Xicluna2010-03-041-5/+5
|
* Fix the new test on windows (skip it, its posix only)Gregory P. Smith2010-03-011-0/+1
|
* Issue #1068268: The subprocess module now handles EINTR in internalGregory P. Smith2010-03-011-1/+21
| | | | os.waitpid and os.read system calls where appropriate.
* Fix an oversight in r78508: p.wait() should be compared to 0Florent Xicluna2010-02-271-4/+4
|
* Clean test_subprocess: use assertRaises, skipIf, skipUnless helpers and a ↵Florent Xicluna2010-02-271-318/+299
| | | | custom helper assertStderrEqual.
* #7712: add a temp_cwd context manager to test_support and use it in regrtest ↵Ezio Melotti2010-02-101-3/+16
| | | | to run all the tests in a temporary directory, saving the original CWD in test_support.SAVEDCWD. Thanks to Florent Xicluna who helped with the patch.
* use assert[Not]In where appropriateEzio Melotti2010-01-231-3/+3
|
* #6416: Fix compilation of the select module on Windows, as well as ↵Amaury Forgeot d'Arc2009-07-091-1/+1
| | | | | | | | test_subprocess: PIPE_BUF is not defined on Windows, and probably has no meaning there. Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
* Use select.poll() in subprocess, when available, rather than select() so thatGregory P. Smith2009-07-041-1/+17
| | | | | | | | | | it does not fail when file descriptors are large. Fixes issue3392. Patch largely contributed by Frank Chu (fpmc) with some improvements by me. See http://bugs.python.org/issue3392. Candidate for backporting to release26-maint as it is a bug fix and changes no public API.
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-7/+7
|
* #5179: don't leak PIPE fds when child execution fails.Georg Brandl2009-02-141-0/+16
|
* rename the new check_call_output to check_output. its less ugly.Gregory P. Smith2008-12-051-11/+11
|
* Adds a subprocess.check_call_output() function to return the output from aGregory P. Smith2008-12-041-0/+34
| | | | process on success or raise an exception on error.
* Fixes issue2791: subprocess.Popen.communicate leaked a file descripton untilGregory P. Smith2008-05-261-5/+19
| | | | | | | the last reference to the Popen instance was dropped. Adding explicit close() calls fixes it. Candidate for backport to release25-maint.
* fix issue2381: test_subprocess fails if your sys.executable is on aGregory P. Smith2008-05-171-2/+2
| | | | path with a space in it.
* Disabled some unit tests for the upcoming release. See #2777Christian Heimes2008-05-061-6/+6
|
* Added kill, terminate and send_signal to subprocess.PopenChristian Heimes2008-04-191-0/+46
| | | | The bits and pieces for the Windows side were already in place. The POSIX side is trivial (as usual) and uses os.kill().
* Fix issue 1300: Quote command line arguments that contain a '|' character inGregory P. Smith2008-01-191-0/+2
| | | | subprocess.list2cmdline (windows).
* fix comment typos, use not arg instead of arg == "", add test coverageGregory P. Smith2008-01-191-0/+2
| | | | for inside of the final if needquotes: within subprocess.list2cmdline().
* Patch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory.Guido van Rossum2007-12-201-1/+1
|
* Applied patch 1669481, slightly modified: Support close_fds on Win32Peter Astrand2007-05-261-0/+8
|
* Fix for bug #1634343: allow specifying empty arguments on WindowsPeter Astrand2007-01-131-0/+2
|
* Fixed subprocess bug #1531862 again, after removing testsGustavo Niemeyer2006-09-071-0/+6
| | | | offending buildbot
* Revert 51758 because it broke all the buildbotsNeal Norwitz2006-09-061-42/+0
|
* Fixing #1531862: Do not close standard file descriptors in theGustavo Niemeyer2006-09-061-0/+42
| | | | subprocess module.
* Whitespace normalization.Tim Peters2006-08-021-1/+1
|
* [Patch #1520905] Attempt to suppress core file created by test_subprocess.py.Andrew M. Kuchling2006-08-011-2/+28
| | | | | | | | | Patch by Douglas Greiman. The test_run_abort() testcase produces a core file on Unix systems, even though the test is successful. This can be confusing or alarming to someone who runs 'make test' and then finds that the Python interpreter apparently crashed.
* Bug #1223937: CalledProcessError.errno -> CalledProcessError.returncode.Peter Astrand2006-07-141-1/+1
|
* Make it possible to run test_subprocess.py with Python 2.2, which lacks ↵Peter Astrand2006-07-101-3/+6
| | | | test_support.reap_children().
* Whitespace normalization.Tim Peters2006-06-301-4/+4
|
* Add new utility function, reap_children(), to test_support. This shouldNeal Norwitz2006-06-291-0/+11
| | | | | | | | | | be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell.
* Make it possible to run test_subprocess.py on Python 2.2, which lacks ↵Peter Astrand2006-06-221-1/+2
| | | | test_support.is_resource_enabled.
* Try to fix breakage caused by patch #1479181, r45850Neal Norwitz2006-05-021-2/+2
|