From: Vinay Sajip Date: Sun, 27 May 2012 18:05:36 +0000 (+0100) Subject: Changed executable name computation in test_venv to allow for debug executables. X-Git-Tag: v3.3.0a4~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=393da3240a29852c0e1188c6ccd007e89426a887;p=python Changed executable name computation in test_venv to allow for debug executables. --- diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 108f2cc6df..08fd1dc7f4 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -24,13 +24,12 @@ class BaseTest(unittest.TestCase): self.ps3name = 'pysetup3-script.py' self.lib = ('Lib',) self.include = 'Include' - self.exe = 'python.exe' else: self.bindir = 'bin' self.ps3name = 'pysetup3' self.lib = ('lib', 'python%s' % sys.version[:3]) self.include = 'include' - self.exe = 'python' + self.exe = os.path.split(sys.executable)[-1] def tearDown(self): shutil.rmtree(self.env_dir)