File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
import textwrap
6
6
from os .path import curdir , join , pardir
7
7
8
- # Ignore because flake8 can't detect the use inside skipif().
9
- import pip ._vendor .six # noqa: F401
10
8
import pytest
9
+ from pip ._vendor .six import PY2
11
10
12
11
from pip ._internal import pep425tags
13
12
from pip ._internal .cli .status_codes import ERROR , SUCCESS
21
20
from tests .lib .local_repos import local_checkout
22
21
from tests .lib .path import Path
23
22
23
+ python2_only = pytest .mark .skipif (not PY2 , reason = "Python 2 only" )
24
+
24
25
25
26
@pytest .mark .parametrize ('command' , ('install' , 'wheel' ))
26
27
@pytest .mark .parametrize ('variant' , ('missing_setuptools' , 'bad_setuptools' ))
@@ -530,7 +531,7 @@ def test_editable_install__local_dir_no_setup_py_with_pyproject(
530
531
assert 'A "pyproject.toml" file was found' in msg
531
532
532
533
533
- @pytest . mark . skipif ( "pip._vendor.six.PY3" )
534
+ @python2_only
534
535
@pytest .mark .xfail
535
536
def test_install_argparse_shadowed (script ):
536
537
# When argparse is in the stdlib, we support installing it
You can’t perform that action at this time.
0 commit comments