File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -951,6 +951,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
951951 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
952952 # Test that the proxy environment variables are set correctly
953953 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
954+ # Delete in case our environment has this set
955+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
954956
955957 client = DefaultHttpxClient ()
956958
@@ -1861,6 +1863,8 @@ async def test_get_platform(self) -> None:
18611863 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
18621864 # Test that the proxy environment variables are set correctly
18631865 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1866+ # Delete in case our environment has this set
1867+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
18641868
18651869 client = DefaultAsyncHttpxClient ()
18661870
You can’t perform that action at this time.
0 commit comments