File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1002,6 +1002,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
10021002 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
10031003 # Test that the proxy environment variables are set correctly
10041004 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1005+ # Delete in case our environment has this set
1006+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
10051007
10061008 client = DefaultHttpxClient ()
10071009
@@ -1953,6 +1955,8 @@ async def test_get_platform(self) -> None:
19531955 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
19541956 # Test that the proxy environment variables are set correctly
19551957 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1958+ # Delete in case our environment has this set
1959+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
19561960
19571961 client = DefaultAsyncHttpxClient ()
19581962
You can’t perform that action at this time.
0 commit comments