Skip to content

Commit 33e3ef8

Browse files
committed
paint it black
1 parent 8e17de1 commit 33e3ef8

File tree

2 files changed

+148
-171
lines changed

2 files changed

+148
-171
lines changed

tests/test_cmdline.py

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1-
import sys
21
import subprocess
3-
import virtualenv
2+
import sys
3+
44
import pytest
55

6+
import virtualenv
7+
68
VIRTUALENV_SCRIPT = virtualenv.__file__
79

10+
811
def test_commandline_basic(tmpdir):
912
"""Simple command line usage should work"""
10-
subprocess.check_call([
11-
sys.executable,
12-
VIRTUALENV_SCRIPT,
13-
str(tmpdir.join('venv'))
14-
])
13+
subprocess.check_call([sys.executable, VIRTUALENV_SCRIPT, str(tmpdir.join("venv"))])
14+
1515

1616
def test_commandline_explicit_interp(tmpdir):
1717
"""Specifying the Python interpreter should work"""
18-
subprocess.check_call([
19-
sys.executable,
20-
VIRTUALENV_SCRIPT,
21-
'-p', sys.executable,
22-
str(tmpdir.join('venv'))
23-
])
18+
subprocess.check_call([sys.executable, VIRTUALENV_SCRIPT, "-p", sys.executable, str(tmpdir.join("venv"))])
19+
2420

2521
# The registry lookups to support the abbreviated "-p 3.5" form of specifying
2622
# a Python interpreter on Windows don't seem to work with Python 3.5. The
@@ -30,15 +26,9 @@ def test_commandline_explicit_interp(tmpdir):
3026
@pytest.mark.skipif("sys.platform == 'win32' and sys.version_info[:1] >= (3,)")
3127
def test_commandline_abbrev_interp(tmpdir):
3228
"""Specifying abbreviated forms of the Python interpreter should work"""
33-
if sys.platform == 'win32':
34-
fmt = '%s.%s'
29+
if sys.platform == "win32":
30+
fmt = "%s.%s"
3531
else:
36-
fmt = 'python%s.%s'
32+
fmt = "python%s.%s"
3733
abbrev = fmt % (sys.version_info[0], sys.version_info[1])
38-
subprocess.check_call([
39-
sys.executable,
40-
VIRTUALENV_SCRIPT,
41-
'-p', abbrev,
42-
str(tmpdir.join('venv'))
43-
])
44-
34+
subprocess.check_call([sys.executable, VIRTUALENV_SCRIPT, "-p", abbrev, str(tmpdir.join("venv"))])

0 commit comments

Comments
 (0)