File tree 1 file changed +5
-3
lines changed
1 file changed +5
-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
8
+ import pip ._vendor .six
10
9
import pytest
11
10
12
11
from pip ._internal import pep425tags
21
20
from tests .lib .local_repos import local_checkout
22
21
from tests .lib .path import Path
23
22
23
+ python3_only = pytest .mark .skipif (not pip ._vendor .six .PY2 ,
24
+ reason = "Python 3 only" )
25
+
24
26
25
27
@pytest .mark .parametrize ('command' , ('install' , 'wheel' ))
26
28
@pytest .mark .parametrize ('variant' , ('missing_setuptools' , 'bad_setuptools' ))
@@ -530,7 +532,7 @@ def test_editable_install__local_dir_no_setup_py_with_pyproject(
530
532
assert 'A "pyproject.toml" file was found' in msg
531
533
532
534
533
- @pytest . mark . skipif ( "pip._vendor.six.PY3" )
535
+ @python3_only
534
536
@pytest .mark .xfail
535
537
def test_install_argparse_shadowed (script ):
536
538
# When argparse is in the stdlib, we support installing it
You can’t perform that action at this time.
0 commit comments