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 @@ -1028,6 +1028,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
10281028 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
10291029 # Test that the proxy environment variables are set correctly
10301030 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1031+ # Delete in case our environment has this set
1032+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
10311033
10321034 client = DefaultHttpxClient ()
10331035
@@ -2015,6 +2017,8 @@ async def test_get_platform(self) -> None:
20152017 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
20162018 # Test that the proxy environment variables are set correctly
20172019 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
2020+ # Delete in case our environment has this set
2021+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
20182022
20192023 client = DefaultAsyncHttpxClient ()
20202024
You can’t perform that action at this time.
0 commit comments