Skip to content

Commit 3606abb

Browse files
committed
Remove tests that exercise --global-option
1 parent 9f7cb65 commit 3606abb

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
@@ -1000,24 +1000,6 @@ def test_install_pardir(script: PipTestEnvironment, data: TestData) -> None:
10001000
result.did_create(dist_info_folder)
10011001

10021002

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

10311013

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

0 commit comments

Comments
 (0)