From 2b9a75411fa38b883b9237be8dc8faa8397da5d1 Mon Sep 17 00:00:00 2001 From: cxhello Date: Thu, 15 Jan 2026 14:16:35 +0800 Subject: [PATCH] fix(tests): skip proxy for localhost in Windows environments Set NO_PROXY environment variable to 127.0.0.1 to prevent tests from failing on Windows systems with a proxy enabled. Closes #1477 Signed-off-by: cxhello --- tests/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index af7e479932..f188c9d8e9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,9 @@ +import os + import pytest +os.environ["NO_PROXY"] = "127.0.0.1" + @pytest.fixture def anyio_backend():