From ae6f57dc76c93ddd408b7e0691b25de0a4047ca2 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Sat, 26 Jun 2021 14:03:31 +0200 Subject: [PATCH] Skip tests that randomly fail on Windows in CI --- tests/test_redirects.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_redirects.py b/tests/test_redirects.py index 3423ed82..9aa6e1ce 100644 --- a/tests/test_redirects.py +++ b/tests/test_redirects.py @@ -1,6 +1,7 @@ """High-level tests.""" import pytest +from httpie.compat import is_windows from httpie.status import ExitStatus from .fixtures import FILE_PATH_ARG, FILE_CONTENT from .utils import http, HTTP_OK @@ -66,6 +67,7 @@ def test_max_redirects(httpbin): assert r.exit_status == ExitStatus.ERROR_TOO_MANY_REDIRECTS +@pytest.mark.skipif(is_windows, reason='occasionally fails w/ ConnectionError for no apparent reason') @pytest.mark.parametrize('status_code', REDIRECTS_WITH_METHOD_BODY_PRESERVED) def test_follow_redirect_with_repost(httpbin, status_code): r = http( @@ -79,6 +81,7 @@ def test_follow_redirect_with_repost(httpbin, status_code): assert FILE_CONTENT in r +@pytest.mark.skipif(is_windows, reason='occasionally fails w/ ConnectionError for no apparent reason') @pytest.mark.parametrize('status_code', REDIRECTS_WITH_METHOD_BODY_PRESERVED) def test_verbose_follow_redirect_with_repost(httpbin, status_code): r = http(