summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_popen.py
Commit message (Collapse)AuthorAgeFilesLines
* 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 :)