summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_popen.py
Commit message (Collapse)AuthorAgeFilesLines
* Add basic tests for the return value of os.popen().close().Amaury Forgeot d'Arc2009-07-111-0/+7
| | | | According to #6358, python 3.0 has a different implementation that behaves differently.
* Port test_popen.py to unittest.Walter Dörwald2007-01-241-22/+29
|
* Add new utility function, reap_children(), to test_support. This shouldNeal Norwitz2006-06-291-1/+2
| | | | | | | | | | 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.
* Don't quote the path to Python unless the path contains an embedded space.Tim Peters2003-03-071-1/+4
| | | | | | | | Quoting the path doesn't work on Win2K (cmd.exe) regardless, this is just a hack to let the test pass again on Win2K (so long as Python isn't installed in a path that does contain an embedded space). On Win2K it looks like we'd also have to add a second pair of double quotes, around the entire command line.
* sys.executable can contain spaces, cater for this when passing it toJack Jansen2003-02-241-1/+1
| | | | os.popen(). Fixes #692222.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Get popen test to work even if python is not in the pathNeal Norwitz2002-07-201-1/+1
|
* Fix bugs:Mark Hammond2002-04-031-0/+36
457466: popenx() argument mangling hangs python 226766: popen('python -c"...."') tends to hang Fixes argument quoting in w9xpopen.exe for Windows 9x. w9xpopen.exe also never attempts to display a MessageBox when not executed interactively. Added test_popen() test. This test currently just executes "python -c ..." as a child process, and checks that the expected arguments were all recieved correctly by the child process. This test succeeds for me on Win9x, win2k and Linux, and I hope it does for other popen supported platforms too :)