1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Rename for clarity

This commit is contained in:
Hugo 2019-09-09 20:43:09 +03:00
parent 0f7921e120
commit 2b94acb9d8

View file

@ -20,8 +20,8 @@ from tests.lib import (
from tests.lib.local_repos import local_checkout
from tests.lib.path import Path
python2_only = pytest.mark.skipif(not PY2, reason="Python 2 only")
non_python2_only = pytest.mark.skipif(PY2, reason="Non-Python 2 only")
skip_if_python2 = pytest.mark.skipif(PY2, reason="Non-Python 2 only")
skip_if_not_python2 = pytest.mark.skipif(not PY2, reason="Python 2 only")
@pytest.mark.parametrize('command', ('install', 'wheel'))
@ -532,7 +532,7 @@ def test_editable_install__local_dir_no_setup_py_with_pyproject(
assert 'A "pyproject.toml" file was found' in msg
@python2_only
@skip_if_not_python2
@pytest.mark.xfail
def test_install_argparse_shadowed(script):
# When argparse is in the stdlib, we support installing it
@ -547,7 +547,7 @@ def test_install_argparse_shadowed(script):
@pytest.mark.network
@non_python2_only
@skip_if_python2
def test_upgrade_argparse_shadowed(script):
# If argparse is installed - even if shadowed for imported - we support
# upgrading it and properly remove the older versions files.