From: Pieter Lenaerts <plenae@disroot.org>
Date: Sat, 27 Jun 2026 07:15:04 +0200
Subject: Disable proxies during tests

This is specific to using debian apt proxies, so not forwarding.

Forwarded: not-needed
---
 tests/conftest.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/conftest.py b/tests/conftest.py
index af7e479..3bcf404 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -4,3 +4,9 @@ import pytest
 @pytest.fixture
 def anyio_backend():
     return "asyncio"
+
+@pytest.fixture(autouse=True)
+def no_proxy_env(monkeypatch):
+    """Ensure proxy env vars are unset for all tests."""
+    for var in ('HTTP_PROXY', 'HTTPS_PROXY', 'http_proxy', 'https_proxy'):
+        monkeypatch.delenv(var, raising=False)
