Skip to content

Commit 0575cd7

Browse files
committed
Remove noqa workaround
1 parent fd5ffb6 commit 0575cd7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/functional/test_install.py

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

8-
# Ignore because flake8 can't detect the use inside skipif().
9-
import pip._vendor.six # noqa: F401
8+
import pip._vendor.six
109
import pytest
1110

1211
from pip._internal import pep425tags
@@ -21,6 +20,9 @@
2120
from tests.lib.local_repos import local_checkout
2221
from tests.lib.path import Path
2322

23+
python3_only = pytest.mark.skipif(not pip._vendor.six.PY2,
24+
reason="Python 3 only")
25+
2426

2527
@pytest.mark.parametrize('command', ('install', 'wheel'))
2628
@pytest.mark.parametrize('variant', ('missing_setuptools', 'bad_setuptools'))
@@ -530,7 +532,7 @@ def test_editable_install__local_dir_no_setup_py_with_pyproject(
530532
assert 'A "pyproject.toml" file was found' in msg
531533

532534

533-
@pytest.mark.skipif("pip._vendor.six.PY3")
535+
@python3_only
534536
@pytest.mark.xfail
535537
def test_install_argparse_shadowed(script):
536538
# When argparse is in the stdlib, we support installing it

0 commit comments

Comments
 (0)