Skip to content

Commit c9270bf

Browse files
committed
Fix some pep8 style
1 parent a20f411 commit c9270bf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_virtualenv.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_resolve_interpreter_with_absolute_path(mock_exists):
2525
exe = virtualenv.resolve_interpreter(test_abs_path)
2626

2727
assert exe == test_abs_path, "Absolute path should return as is"
28+
2829
mock_exists.assert_called_with(test_abs_path)
2930
virtualenv.is_executable.assert_called_with(test_abs_path)
3031

@@ -96,6 +97,7 @@ def get_environ_vars(self, prefix='VIRTUALENV_'):
9697
cop.update_defaults(defaults)
9798
assert defaults == {'system_site_packages': 0}
9899

100+
99101
def test_install_python_bin():
100102
"""Should create the right python executables and links"""
101103
tmp_virtualenv = tempfile.mkdtemp()
@@ -106,18 +108,18 @@ def test_install_python_bin():
106108
False)
107109

108110
if virtualenv.is_win:
109-
required_executables = [ 'python.exe', 'pythonw.exe']
111+
required_executables = ['python.exe', 'pythonw.exe']
110112
else:
111113
py_exe_no_version = 'python'
112114
py_exe_version_major = 'python%s' % sys.version_info[0]
113115
py_exe_version_major_minor = 'python%s.%s' % (
114116
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]
117119

118120
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)
121123
finally:
122124
shutil.rmtree(tmp_virtualenv)
123125

0 commit comments

Comments
 (0)