@@ -59,6 +59,7 @@ def test_pip_config_file(self) -> None:
5959 ):
6060 self .assertEqual ("https://pypi.org/simple" , get_index_url ())
6161
62+ @unittest .skipIf (os .name == "nt" , "xfail on windows" )
6263 def test_virtual_env (self ) -> None :
6364 with tempfile .TemporaryDirectory () as d :
6465 Path (d , "pip.conf" ).write_text ("[global]\n index-url=a\n " )
@@ -79,6 +80,7 @@ def test_fallback(self) -> None:
7980 ), patch_env ("XDG_CONFIG_HOME" , "" ), patch_env ("PIP_CONFIG_FILE" , "" ):
8081 self .assertEqual ("https://pypi.org/simple" , get_index_url ())
8182
83+ @unittest .skipIf (os .name == "nt" , "xfail on windows" )
8284 def test_get_possible_config_locations (self ) -> None :
8385 with patch_env ("VIRTUAL_ENV" , "/foo" ), patch_env (
8486 "PIP_CONFIG_FILE" , "/bar/pip.conf"
@@ -95,6 +97,7 @@ def test_get_possible_config_locations(self) -> None:
9597 _get_possible_config_locations (),
9698 )
9799
100+ @unittest .skipIf (os .name == "nt" , "xfail on windows" )
98101 def test_get_possible_config_locations_devnull (self ) -> None :
99102 with patch_env ("VIRTUAL_ENV" , "/foo" ), patch_env (
100103 "PIP_CONFIG_FILE" , "os.devnull"
0 commit comments