File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -922,6 +922,8 @@ def retry_handler(_request: httpx.Request) -> httpx.Response:
922922 def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
923923 # Test that the proxy environment variables are set correctly
924924 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
925+ # Delete in case our environment has this set
926+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
925927
926928 client = DefaultHttpxClient ()
927929
@@ -1809,6 +1811,8 @@ async def test_get_platform(self) -> None:
18091811 async def test_proxy_environment_variables (self , monkeypatch : pytest .MonkeyPatch ) -> None :
18101812 # Test that the proxy environment variables are set correctly
18111813 monkeypatch .setenv ("HTTPS_PROXY" , "https://example.org" )
1814+ # Delete in case our environment has this set
1815+ monkeypatch .delenv ("HTTP_PROXY" , raising = False )
18121816
18131817 client = DefaultAsyncHttpxClient ()
18141818
You can’t perform that action at this time.
0 commit comments