Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -3/+3 |
| | |||||
* | #6416: Fix compilation of the select module on Windows, as well as ↵ | Amaury Forgeot d'Arc | 2009-07-09 | 1 | -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 that | Gregory P. Smith | 2009-07-04 | 1 | -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 Peterson | 2009-06-30 | 1 | -7/+7 |
| | |||||
* | #5179: don't leak PIPE fds when child execution fails. | Georg Brandl | 2009-02-14 | 1 | -0/+16 |
| | |||||
* | rename the new check_call_output to check_output. its less ugly. | Gregory P. Smith | 2008-12-05 | 1 | -11/+11 |
| | |||||
* | Adds a subprocess.check_call_output() function to return the output from a | Gregory P. Smith | 2008-12-04 | 1 | -0/+34 |
| | | | | process on success or raise an exception on error. | ||||
* | Fixes issue2791: subprocess.Popen.communicate leaked a file descripton until | Gregory P. Smith | 2008-05-26 | 1 | -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 a | Gregory P. Smith | 2008-05-17 | 1 | -2/+2 |
| | | | | path with a space in it. | ||||
* | Disabled some unit tests for the upcoming release. See #2777 | Christian Heimes | 2008-05-06 | 1 | -6/+6 |
| | |||||
* | Added kill, terminate and send_signal to subprocess.Popen | Christian Heimes | 2008-04-19 | 1 | -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 in | Gregory P. Smith | 2008-01-19 | 1 | -0/+2 |
| | | | | subprocess.list2cmdline (windows). | ||||
* | fix comment typos, use not arg instead of arg == "", add test coverage | Gregory P. Smith | 2008-01-19 | 1 | -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 Rossum | 2007-12-20 | 1 | -1/+1 |
| | |||||
* | Applied patch 1669481, slightly modified: Support close_fds on Win32 | Peter Astrand | 2007-05-26 | 1 | -0/+8 |
| | |||||
* | Fix for bug #1634343: allow specifying empty arguments on Windows | Peter Astrand | 2007-01-13 | 1 | -0/+2 |
| | |||||
* | Fixed subprocess bug #1531862 again, after removing tests | Gustavo Niemeyer | 2006-09-07 | 1 | -0/+6 |
| | | | | offending buildbot | ||||
* | Revert 51758 because it broke all the buildbots | Neal Norwitz | 2006-09-06 | 1 | -42/+0 |
| | |||||
* | Fixing #1531862: Do not close standard file descriptors in the | Gustavo Niemeyer | 2006-09-06 | 1 | -0/+42 |
| | | | | subprocess module. | ||||
* | Whitespace normalization. | Tim Peters | 2006-08-02 | 1 | -1/+1 |
| | |||||
* | [Patch #1520905] Attempt to suppress core file created by test_subprocess.py. | Andrew M. Kuchling | 2006-08-01 | 1 | -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 Astrand | 2006-07-14 | 1 | -1/+1 |
| | |||||
* | Make it possible to run test_subprocess.py with Python 2.2, which lacks ↵ | Peter Astrand | 2006-07-10 | 1 | -3/+6 |
| | | | | test_support.reap_children(). | ||||
* | Whitespace normalization. | Tim Peters | 2006-06-30 | 1 | -4/+4 |
| | |||||
* | Add new utility function, reap_children(), to test_support. This should | Neal Norwitz | 2006-06-29 | 1 | -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 Astrand | 2006-06-22 | 1 | -1/+2 |
| | | | | test_support.is_resource_enabled. | ||||
* | Try to fix breakage caused by patch #1479181, r45850 | Neal Norwitz | 2006-05-02 | 1 | -2/+2 |
| | |||||
* | SF #1479181: split open() and file() from being aliases for each other. | Neal Norwitz | 2006-05-02 | 1 | -2/+2 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2005-03-28 | 1 | -1/+1 |
| | |||||
* | Tweak test_communicate_stderr so that it works when run under a pydebug build. | Brett Cannon | 2005-03-05 | 1 | -1/+3 |
| | |||||
* | Only run extensive subprocess tests if -usubprocess to regrtest is ↵ | Peter Astrand | 2005-03-03 | 1 | -3/+4 |
| | | | | specified. Fixes #1124637 | ||||
* | Added three more testcases: Using communicate with only one of | Peter Astrand | 2005-03-03 | 1 | -0/+23 |
| | | | | stdin/stdout/stderr redirected. | ||||
* | New subprocess utility function: check_call. Closes #1071764. | Peter Astrand | 2005-01-01 | 1 | -0/+16 |
| | |||||
* | Raise TypeError if bufsize argument is not an integer. Patch 1071755, ↵ | Peter Astrand | 2004-11-30 | 1 | -0/+11 |
| | | | | slightly modified. | ||||
* | Remove tempfile after use in test_call_string. | Peter Astrand | 2004-11-17 | 1 | -1/+2 |
| | | | | In test_args_string, remove the tempfile before assertEqual. | ||||
* | Use os.chdir/os.getcwd instead of os.path.realpath, to support Tru64 | Peter Astrand | 2004-11-12 | 1 | -1/+6 |
| | | | | TEMP dirs with {memb} strings. Fixes #1063571. | ||||
* | Removed test_close_fds, because it's too unreliable. We simply cannot | Peter Astrand | 2004-10-21 | 1 | -10/+0 |
| | | | | | know that the newly-started Python process only has 3 filedescriptors open. Fixes bug 1048808. | ||||
* | remove_stderr_debug_decorations(): Always try the substitution. Else | Tim Peters | 2004-10-14 | 1 | -3/+1 |
| | | | | | this test failed under the combination of passing -O to a debug-build Python. Now all 4 of those pass ({debug, release} x {-O, no -O}). | ||||
* | Don't spend quite as much time looking for leaks on Windows, where | Fredrik Lundh | 2004-10-13 | 1 | -2/+4 |
| | | | | it's rather expensive to create new processes. | ||||
* | normalize case when comparing directory names (problem reported by | Fredrik Lundh | 2004-10-13 | 1 | -1/+2 |
| | | | | "Khalid A. B." on python-dev) | ||||
* | New helper remove_stderr_debug_decorations(). This test passes in a | Tim Peters | 2004-10-13 | 1 | -7/+24 |
| | | | | | debug build on Windows now. More applications of the helper may be needed on non-Windows platforms. | ||||
* | Kill several problems at once: test_poll() failed sometimes for me. | Tim Peters | 2004-10-13 | 1 | -6/+11 |
| | | | | | | | | | | | Turns out the mysterious "expected output" file contained exactly N dots, because test_poll() has a loop that *usually* went around N times, printing one dot on each loop trip. But there's no guarantee of that, because the exact value of N depended on the vagaries of scheduling time.sleep()s across two different processes. So stopped printing dots, and got rid of the expected output file. Add a loop counter instead, and verify that the loop goes around at least a couple of times. Also cut the minimum time needed for this test from 4 seconds to 1. | ||||
* | test_stdout_none(): Don't print "banana" to the screen in the middle | Tim Peters | 2004-10-13 | 1 | -2/+5 |
| | | | | | of the test. It's testing stdout in a different process, so it has to print something, but I didn't find "banana" to be self-explanatory. | ||||
* | Windows test_creationflags() test: print msg to stderr informing the | Tim Peters | 2004-10-13 | 1 | -1/+2 |
| | | | | | | tester that a DOS box is expected to flash. Slash the sleep from 2 seconds to a quarter second (why would we want to wait 2 seconds just to stare at a DOS box?). | ||||
* | XXX about extreme expense of test_no_leaking() on Windows. I'm not sure | Tim Peters | 2004-10-13 | 1 | -0/+1 |
| | | | | | | what this is trying to do. If it's necessary for it to create > 1000 processes, it should be controlled by a new resource and not run by default on Windows. | ||||
* | Experience with Zope2's tests showed it's a Bad Idea to make unittest | Tim Peters | 2004-10-12 | 1 | -45/+35 |
| | | | | | | display a test's docstring as "the name" of the test. So changed most test docstrings to comments, and removed the clearly useless ones. Now unittest reports the actual names of the test methods. | ||||
* | Wrap long lines. | Tim Peters | 2004-10-12 | 1 | -43/+67 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-10-12 | 1 | -17/+16 |
| | |||||
* | Added Peter Astrand's subprocess module. | Fredrik Lundh | 2004-10-12 | 1 | -0/+514 |