Skip to content

Commit a709e54

Browse files
committed
Remove tests that exercise --global-option
1 parent 69b762c commit a709e54

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

tests/functional/test_install.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,24 +1005,6 @@ def test_install_pardir(script: PipTestEnvironment, data: TestData) -> None:
10051005
result.did_create(dist_info_folder)
10061006

10071007

1008-
@pytest.mark.network
1009-
def test_install_global_option(script: PipTestEnvironment) -> None:
1010-
"""
1011-
Test using global distutils options.
1012-
(In particular those that disable the actual install action)
1013-
"""
1014-
result = script.pip(
1015-
"install",
1016-
"--global-option=--version",
1017-
"INITools==0.1",
1018-
expect_error=True, # build is going to fail because of --version
1019-
)
1020-
assert "INITools==0.1\n" in result.stdout
1021-
assert not result.files_created
1022-
assert "Implying --no-binary=:all:" in result.stderr
1023-
assert "A possible replacement is to use --config-settings" in result.stderr
1024-
1025-
10261008
def test_install_with_hacked_egg_info(
10271009
script: PipTestEnvironment, data: TestData
10281010
) -> None:
@@ -1034,26 +1016,6 @@ def test_install_with_hacked_egg_info(
10341016
assert "Successfully installed hackedegginfo-0.0.0\n" in result.stdout
10351017

10361018

1037-
@pytest.mark.xfail
1038-
@pytest.mark.network
1039-
@need_mercurial
1040-
def test_install_global_option_using_editable(
1041-
script: PipTestEnvironment, tmpdir: Path
1042-
) -> None:
1043-
"""
1044-
Test using global distutils options, but in an editable installation
1045-
"""
1046-
url = "hg+http://bitbucket.org/runeh/anyjson"
1047-
result = script.pip(
1048-
"install",
1049-
"--global-option=--version",
1050-
"-e",
1051-
f"{local_checkout(url, tmpdir)}@0.2.5#egg=anyjson",
1052-
expect_stderr=True,
1053-
)
1054-
assert "Successfully installed anyjson" in result.stdout
1055-
1056-
10571019
@pytest.mark.network
10581020
def test_install_package_with_same_name_in_curdir(script: PipTestEnvironment) -> None:
10591021
"""

0 commit comments

Comments
 (0)