File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -961,6 +961,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
961961 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
962962 # Test that the proxy environment variables are set correctly
963963 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
964+ # Delete in case our environment has this set
965+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
964966
965967 client = DefaultHttpxClient ()
966968
@@ -1882,6 +1884,8 @@ async def test_get_platform(self) -> None:
18821884 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
18831885 # Test that the proxy environment variables are set correctly
18841886 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1887+ # Delete in case our environment has this set
1888+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
18851889
18861890 client = DefaultAsyncHttpxClient ()
18871891
You can’t perform that action at this time.
0 commit comments