From 382a7c0180a885aabd006eea4971e5210ef43b52 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Mon, 28 May 2012 16:34:47 +0100 Subject: [PATCH] Tweaked tests to use launcher executable name on OS X. --- Lib/test/test_venv.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 08fd1dc7f43..50a8e93bf58 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -29,7 +29,11 @@ class BaseTest(unittest.TestCase): self.ps3name = 'pysetup3' self.lib = ('lib', 'python%s' % sys.version[:3]) self.include = 'include' - self.exe = os.path.split(sys.executable)[-1] + if sys.platform == 'darwin' and '__PYTHONV_LAUNCHER__' in env: + executable = os.environ['__PYTHONV_LAUNCHER__'] + else: + executable = sys.executable + self.exe = os.path.split(executable)[-1] def tearDown(self): shutil.rmtree(self.env_dir)