]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
pytest: pass `--disable` to curl
authorViktor Szakats <commit@vsz.me>
Sun, 31 May 2026 16:31:17 +0000 (18:31 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 1 Jun 2026 13:07:17 +0000 (15:07 +0200)
To avoid a local `.curlrc` interfering with tests.

Closes #21816

tests/http/testenv/curl.py

index 5149a8578d7dd3e88137f500faea87bd38b00e73..f5be5ac4495c2989a6557ca3eacf1c471440e78b 100644 (file)
@@ -1127,7 +1127,7 @@ class CurlClient:
         else:
             force_resolve = self._force_resolv
 
-        args = [self._curl, "-s", "--path-as-is"]
+        args = [self._curl, "--disable", "-s", "--path-as-is"]
         if 'CURL_TEST_EVENT' in os.environ:
             args.append('--test-event')