@@ -945,8 +945,14 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
945945 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
946946 # Test that the proxy environment variables are set correctly
947947 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
948- # Delete in case our environment has this set
948+ # Delete in case our environment has any proxy env vars set
949949 monkeypatch .delenv ("HTTP_PROXY" , raising = False )
950+ monkeypatch .delenv ("ALL_PROXY" , raising = False )
951+ monkeypatch .delenv ("NO_PROXY" , raising = False )
952+ monkeypatch .delenv ("http_proxy" , raising = False )
953+ monkeypatch .delenv ("https_proxy" , raising = False )
954+ monkeypatch .delenv ("all_proxy" , raising = False )
955+ monkeypatch .delenv ("no_proxy" , raising = False )
950956
951957 client = DefaultHttpxClient ()
952958
@@ -1855,8 +1861,14 @@ async def test_get_platform(self) -> None:
18551861 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
18561862 # Test that the proxy environment variables are set correctly
18571863 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1858- # Delete in case our environment has this set
1864+ # Delete in case our environment has any proxy env vars set
18591865 monkeypatch .delenv ("HTTP_PROXY" , raising = False )
1866+ monkeypatch .delenv ("ALL_PROXY" , raising = False )
1867+ monkeypatch .delenv ("NO_PROXY" , raising = False )
1868+ monkeypatch .delenv ("http_proxy" , raising = False )
1869+ monkeypatch .delenv ("https_proxy" , raising = False )
1870+ monkeypatch .delenv ("all_proxy" , raising = False )
1871+ monkeypatch .delenv ("no_proxy" , raising = False )
18601872
18611873 client = DefaultAsyncHttpxClient ()
18621874
0 commit comments