diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-11 00:56:59 (GMT) |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-11 00:56:59 (GMT) |
| commit | e58d91c8f009813dce18711d85f941dc87a7ac5f (patch) | |
| tree | b81e5f220e7d79022441f9615aff1dc998e70190 /Lib/test/test_subprocess.py | |
| parent | 85677617d51f607b41ac64bf4cca8c38b6fd771a (diff) | |
| download | cpython-e58d91c8f009813dce18711d85f941dc87a7ac5f.zip cpython-e58d91c8f009813dce18711d85f941dc87a7ac5f.tar.gz cpython-e58d91c8f009813dce18711d85f941dc87a7ac5f.tar.bz2 | |
Fix the test_subprocess failure when sys.executable is meaningless: '' or a directory.
It does not fix #7774.
Diffstat (limited to 'Lib/test/test_subprocess.py')
| -rw-r--r-- | Lib/test/test_subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index dc57c46..365ac91 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -135,7 +135,7 @@ class ProcessTestCase(unittest.TestCase): self.assertEqual(p.stderr, None) def test_executable_with_cwd(self): - python_dir = os.path.dirname(os.path.realpath(sys.executable)) + python_dir = os.path.realpath(os.path.dirname(sys.executable)) p = subprocess.Popen(["somethingyoudonthave", "-c", "import sys; sys.exit(47)"], executable=sys.executable, cwd=python_dir) |
