]> granicus.if.org Git - python/commitdiff
Changed executable name computation in test_venv to allow for debug executables.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 27 May 2012 18:05:36 +0000 (19:05 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sun, 27 May 2012 18:05:36 +0000 (19:05 +0100)
Lib/test/test_venv.py

index 108f2cc6dfccd1ebb4afbccbf24d4d8e86b0d5a7..08fd1dc7f43bf28b78985dfc69709ec5255e4d23 100644 (file)
@@ -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)