Skip to content

Commit 2b9a754

Browse files
committed
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 <caixiaohuichn@gmail.com>
1 parent 0da9a07 commit 2b9a754

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import os
2+
13
import pytest
24

5+
os.environ["NO_PROXY"] = "127.0.0.1"
6+
37

48
@pytest.fixture
59
def anyio_backend():

0 commit comments

Comments
 (0)