@@ -1000,24 +1000,6 @@ def test_install_pardir(script: PipTestEnvironment, data: TestData) -> None:
1000
1000
result .did_create (dist_info_folder )
1001
1001
1002
1002
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
-
1021
1003
def test_install_with_hacked_egg_info (
1022
1004
script : PipTestEnvironment , data : TestData
1023
1005
) -> None :
@@ -1029,26 +1011,6 @@ def test_install_with_hacked_egg_info(
1029
1011
assert "Successfully installed hackedegginfo-0.0.0\n " in result .stdout
1030
1012
1031
1013
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
-
1052
1014
@pytest .mark .network
1053
1015
def test_install_package_with_same_name_in_curdir (script : PipTestEnvironment ) -> None :
1054
1016
"""
0 commit comments