File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -954,6 +954,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
954954 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
955955 # Test that the proxy environment variables are set correctly
956956 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
957+ # Delete in case our environment has this set
958+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
957959
958960 client = DefaultHttpxClient ()
959961
@@ -1865,6 +1867,8 @@ async def test_get_platform(self) -> None:
18651867 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
18661868 # Test that the proxy environment variables are set correctly
18671869 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1870+ # Delete in case our environment has this set
1871+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
18681872
18691873 client = DefaultAsyncHttpxClient ()
18701874
You can’t perform that action at this time.
0 commit comments