summaryrefslogtreecommitdiff
path: root/Lib/test/test_venv.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-27 19:05:36 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-27 19:05:36 +0100
commit9aa051c1974b81815bdfc7a3272f592a40bebcad (patch)
treea0f246e909efcb95abde6df94b3f6ab9bd06d05a /Lib/test/test_venv.py
parenta2e6886677e87bec9d1c9858ccd4616c62741560 (diff)
downloadcpython-9aa051c1974b81815bdfc7a3272f592a40bebcad.tar.gz
Changed executable name computation in test_venv to allow for debug executables.
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r--Lib/test/test_venv.py3
1 files changed, 1 insertions, 2 deletions
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)