diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-11 01:00:26 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-11 01:00:26 (GMT) |
commit | ecf021c7c0caf4698cf704d03af4eb3d366fcdd5 (patch) | |
tree | e6b9183095aac6860e74d98fe983b7136bee5813 /Lib/test | |
parent | a470738b7bf68c3f9bd4063cbef5c0db66bc04a8 (diff) | |
download | cpython-ecf021c7c0caf4698cf704d03af4eb3d366fcdd5.zip cpython-ecf021c7c0caf4698cf704d03af4eb3d366fcdd5.tar.gz cpython-ecf021c7c0caf4698cf704d03af4eb3d366fcdd5.tar.bz2 |
Merged revisions 78830 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78830 | florent.xicluna | 2010-03-11 01:56:59 +0100 (jeu, 11 mar 2010) | 3 lines
Fix the test_subprocess failure when sys.executable is meaningless: '' or a directory.
It does not fix #7774.
........
Diffstat (limited to 'Lib/test')
-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 dff9012..64bfabb 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) |