Skip to content

Commit 9ed0bb9

Browse files
committed
Tidy up
1 parent 0575cd7 commit 9ed0bb9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/functional/test_install.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import textwrap
66
from os.path import curdir, join, pardir
77

8-
import pip._vendor.six
98
import pytest
9+
from pip._vendor.six import PY2
1010

1111
from pip._internal import pep425tags
1212
from pip._internal.cli.status_codes import ERROR, SUCCESS
@@ -20,8 +20,7 @@
2020
from tests.lib.local_repos import local_checkout
2121
from tests.lib.path import Path
2222

23-
python3_only = pytest.mark.skipif(not pip._vendor.six.PY2,
24-
reason="Python 3 only")
23+
python2_only = pytest.mark.skipif(not PY2, reason="Python 2 only")
2524

2625

2726
@pytest.mark.parametrize('command', ('install', 'wheel'))
@@ -532,7 +531,7 @@ def test_editable_install__local_dir_no_setup_py_with_pyproject(
532531
assert 'A "pyproject.toml" file was found' in msg
533532

534533

535-
@python3_only
534+
@python2_only
536535
@pytest.mark.xfail
537536
def test_install_argparse_shadowed(script):
538537
# When argparse is in the stdlib, we support installing it

0 commit comments

Comments
 (0)