@@ -25,6 +25,7 @@ def test_resolve_interpreter_with_absolute_path(mock_exists):
25
25
exe = virtualenv .resolve_interpreter (test_abs_path )
26
26
27
27
assert exe == test_abs_path , "Absolute path should return as is"
28
+
28
29
mock_exists .assert_called_with (test_abs_path )
29
30
virtualenv .is_executable .assert_called_with (test_abs_path )
30
31
@@ -96,6 +97,7 @@ def get_environ_vars(self, prefix='VIRTUALENV_'):
96
97
cop .update_defaults (defaults )
97
98
assert defaults == {'system_site_packages' : 0 }
98
99
100
+
99
101
def test_install_python_bin ():
100
102
"""Should create the right python executables and links"""
101
103
tmp_virtualenv = tempfile .mkdtemp ()
@@ -106,18 +108,18 @@ def test_install_python_bin():
106
108
False )
107
109
108
110
if virtualenv .is_win :
109
- required_executables = [ 'python.exe' , 'pythonw.exe' ]
111
+ required_executables = ['python.exe' , 'pythonw.exe' ]
110
112
else :
111
113
py_exe_no_version = 'python'
112
114
py_exe_version_major = 'python%s' % sys .version_info [0 ]
113
115
py_exe_version_major_minor = 'python%s.%s' % (
114
116
sys .version_info [0 ], sys .version_info [1 ])
115
- required_executables = [ py_exe_no_version , py_exe_version_major ,
116
- py_exe_version_major_minor ]
117
+ required_executables = [py_exe_no_version , py_exe_version_major ,
118
+ py_exe_version_major_minor ]
117
119
118
120
for pth in required_executables :
119
- assert os .path .exists (os .path .join (bin_dir , pth )), ( "%s should "
120
- " exist in bin_dir" % pth )
121
+ assert os .path .exists (os .path .join (bin_dir , pth )), \
122
+ ( "%s should exist in bin_dir" % pth )
121
123
finally :
122
124
shutil .rmtree (tmp_virtualenv )
123
125
0 commit comments