mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Merged revisions 78833 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78833 | florent.xicluna | 2010-03-11 02:50:48 +0100 (jeu, 11 mar 2010) | 2 lines Revert r78830: realpath() should really be applied to sys.executable. ........
This commit is contained in:
parent
ecf021c7c0
commit
1d1ab9734a
2 changed files with 3 additions and 4 deletions
|
@ -135,7 +135,7 @@ class ProcessTestCase(unittest.TestCase):
|
|||
self.assertEqual(p.stderr, None)
|
||||
|
||||
def test_executable_with_cwd(self):
|
||||
python_dir = os.path.realpath(os.path.dirname(sys.executable))
|
||||
python_dir = os.path.dirname(os.path.realpath(sys.executable))
|
||||
p = subprocess.Popen(["somethingyoudonthave", "-c",
|
||||
"import sys; sys.exit(47)"],
|
||||
executable=sys.executable, cwd=python_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue