summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* SF #1479181: split open() and file() from being aliases for each other.Neal Norwitz2006-05-021-2/+2
|
* Whitespace normalization.Tim Peters2005-03-281-1/+1
|
* Tweak test_communicate_stderr so that it works when run under a pydebug build.Brett Cannon2005-03-051-1/+3
|
* Only run extensive subprocess tests if -usubprocess to regrtest is ↵Peter Astrand2005-03-031-3/+4
| | | | specified. Fixes #1124637
* Added three more testcases: Using communicate with only one ofPeter Astrand2005-03-031-0/+23
| | | | stdin/stdout/stderr redirected.
* New subprocess utility function: check_call. Closes #1071764.Peter Astrand2005-01-011-0/+16
|
* Raise TypeError if bufsize argument is not an integer. Patch 1071755, ↵Peter Astrand2004-11-301-0/+11
| | | | slightly modified.
* Remove tempfile after use in test_call_string.Peter Astrand2004-11-171-1/+2
| | | | In test_args_string, remove the tempfile before assertEqual.
* Use os.chdir/os.getcwd instead of os.path.realpath, to support Tru64Peter Astrand2004-11-121-1/+6
| | | | TEMP dirs with {memb} strings. Fixes #1063571.
* Removed test_close_fds, because it's too unreliable. We simply cannotPeter Astrand2004-10-211-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. ElseTim Peters2004-10-141-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, whereFredrik Lundh2004-10-131-2/+4
| | | | it's rather expensive to create new processes.
* normalize case when comparing directory names (problem reported byFredrik Lundh2004-10-131-1/+2
| | | | "Khalid A. B." on python-dev)
* New helper remove_stderr_debug_decorations(). This test passes in aTim Peters2004-10-131-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 Peters2004-10-131-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 middleTim Peters2004-10-131-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 theTim Peters2004-10-131-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 sureTim Peters2004-10-131-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 unittestTim Peters2004-10-121-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 Peters2004-10-121-43/+67
|
* Whitespace normalization.Tim Peters2004-10-121-17/+16
|
* Added Peter Astrand's subprocess module.Fredrik Lundh2004-10-121-0/+514