File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -964,6 +964,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
964964 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
965965 # Test that the proxy environment variables are set correctly
966966 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
967+ # Delete in case our environment has this set
968+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
967969
968970 client = DefaultHttpxClient ()
969971
@@ -1876,6 +1878,8 @@ async def test_get_platform(self) -> None:
18761878 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
18771879 # Test that the proxy environment variables are set correctly
18781880 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1881+ # Delete in case our environment has this set
1882+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
18791883
18801884 client = DefaultAsyncHttpxClient ()
18811885
You can’t perform that action at this time.
0 commit comments