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 @@ -993,6 +993,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
993993 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
994994 # Test that the proxy environment variables are set correctly
995995 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
996+ # Delete in case our environment has this set
997+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
996998
997999 client = DefaultHttpxClient ()
9981000
@@ -1947,6 +1949,8 @@ async def test_get_platform(self) -> None:
19471949 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
19481950 # Test that the proxy environment variables are set correctly
19491951 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1952+ # Delete in case our environment has this set
1953+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
19501954
19511955 client = DefaultAsyncHttpxClient ()
19521956
You can’t perform that action at this time.
0 commit comments