File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -957,6 +957,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
957957 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
958958 # Test that the proxy environment variables are set correctly
959959 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
960+ # Delete in case our environment has this set
961+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
960962
961963 client = DefaultHttpxClient ()
962964
@@ -1873,6 +1875,8 @@ async def test_get_platform(self) -> None:
18731875 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
18741876 # Test that the proxy environment variables are set correctly
18751877 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1878+ # Delete in case our environment has this set
1879+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
18761880
18771881 client = DefaultAsyncHttpxClient ()
18781882
You can’t perform that action at this time.
0 commit comments