summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcus Smith <qwcode@gmail.com>2013-01-22 22:36:36 -0800
committerMarcus Smith <qwcode@gmail.com>2013-01-22 22:36:36 -0800
commitee728c8c3a523680cda50a31132a965a09a702ec (patch)
tree8b4aeea55bdc8f332c6f0d403474580d92367b1e /tests
parent350dc91028b06c7ea5def4ff10cd09f52a7a32ac (diff)
downloadvirtualenv-ee728c8c3a523680cda50a31132a965a09a702ec.tar.gz
windows test fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/test_virtualenv.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py
index 0356a38..a29191a 100644
--- a/tests/test_virtualenv.py
+++ b/tests/test_virtualenv.py
@@ -97,8 +97,8 @@ def test_cop_update_defaults_with_store_false():
cop.update_defaults(defaults)
assert defaults == {'system_site_packages': 0}
-def test_install_python_symlinks():
- """Should create the right symlinks in bin_dir"""
+def test_install_python_bin():
+ """Should create the right python executables and links"""
tmp_virtualenv = tempfile.mkdtemp()
try:
home_dir, lib_dir, inc_dir, bin_dir = \
@@ -106,12 +106,15 @@ def test_install_python_symlinks():
virtualenv.install_python(home_dir, lib_dir, inc_dir, bin_dir, False,
False)
- py_exe_no_version = 'python'
- py_exe_version_major = 'python%s' % sys.version_info[0]
- py_exe_version_major_minor = 'python%s.%s' % (
- sys.version_info[0], sys.version_info[1])
- required_executables = [ py_exe_no_version, py_exe_version_major,
- py_exe_version_major_minor ]
+ if virtualenv.is_win:
+ required_executables = [ 'python.exe', 'pythonw.exe']
+ else:
+ py_exe_no_version = 'python'
+ py_exe_version_major = 'python%s' % sys.version_info[0]
+ py_exe_version_major_minor = 'python%s.%s' % (
+ sys.version_info[0], sys.version_info[1])
+ required_executables = [ py_exe_no_version, py_exe_version_major,
+ py_exe_version_major_minor ]
for pth in required_executables:
assert os.path.exists(os.path.join(bin_dir, pth)), ("%s should "