File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -904,6 +904,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
904904 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
905905 # Test that the proxy environment variables are set correctly
906906 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
907+ # Delete in case our environment has this set
908+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
907909
908910 client = DefaultHttpxClient ()
909911
@@ -1756,6 +1758,8 @@ async def test_get_platform(self) -> None:
17561758 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
17571759 # Test that the proxy environment variables are set correctly
17581760 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1761+ # Delete in case our environment has this set
1762+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
17591763
17601764 client = DefaultAsyncHttpxClient ()
17611765
You can’t perform that action at this time.
0 commit comments