[Python-checkins] cpython: Changed executable name computation in test_venv to allow for debug executables.

vinay.sajip python-checkins at python.org
Sun May 27 20:05:55 CEST 2012


http://hg.python.org/cpython/rev/44b9d1bf5348
changeset:   77185:44b9d1bf5348
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Sun May 27 19:05:36 2012 +0100
summary:
  Changed executable name computation in test_venv to allow for debug executables.

files:
  Lib/test/test_venv.py |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -24,13 +24,12 @@
             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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list