cpython: 862430c68fec (original) (raw)

Mercurial > cpython

changeset 79598:862430c68fec 3.3

Issue #16115: Improve testing of the executable argument to subprocess.Popen(). [#16115]

Chris Jerdonek chris.jerdonek@gmail.com
date Mon, 08 Oct 2012 15:56:43 -0700
parents ef183e71268a
children 1b37fc50dc1b ef90c5e482f4
files Lib/test/test_subprocess.py Misc/NEWS
diffstat 2 files changed, 30 insertions(+), 10 deletions(-)[+] [-] Lib/test/test_subprocess.py 37 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -192,6 +192,33 @@ class ProcessTestCase(BaseTestCase): p.wait() self.assertEqual(p.stderr, None)

+

+

+

+ # For use in the test_cwd* tests below. def _normalize_cwd(self, cwd): # Normalize an expected cwd (for Tru64 support). @@ -299,16 +326,6 @@ class ProcessTestCase(BaseTestCase): # argument. For test runs in the build directory, see #7774. self._assert_cwd('', "somethingyoudonthave", executable=sys.executable)

- def test_stdin_pipe(self): # stdin redirection p = subprocess.Popen([sys.executable, "-c",

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -100,6 +100,9 @@ Library Tests ----- +- Issue #16115: Add some tests for the executable argument to