From: Rainer Jung Date: Wed, 17 Jul 2024 22:12:49 +0000 (+0000) Subject: Skip more h2 tests in prefork. X-Git-Tag: 2.4.63-candidate~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3da8255f382beaf834ba963ce55100dfaad0adf5;p=thirdparty%2Fapache%2Fhttpd.git Skip more h2 tests in prefork. Backport of r1919334 from trunk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1919335 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/modules/http2/test_202_trailer.py b/test/modules/http2/test_202_trailer.py index 4b4fc42c788..6c4e05d3d99 100644 --- a/test/modules/http2/test_202_trailer.py +++ b/test/modules/http2/test_202_trailer.py @@ -1,7 +1,7 @@ import os import pytest -from .env import H2Conf +from .env import H2Conf, H2TestEnv def setup_data(env): @@ -13,6 +13,7 @@ def setup_data(env): # The trailer tests depend on "nghttp" as no other client seems to be able to send those # rare things. +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") class TestTrailers: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_203_rfc9113.py b/test/modules/http2/test_203_rfc9113.py index 1fe3e131595..143c0fc930d 100644 --- a/test/modules/http2/test_203_rfc9113.py +++ b/test/modules/http2/test_203_rfc9113.py @@ -2,9 +2,10 @@ import pytest from typing import List, Optional from pyhttpd.env import HttpdTestEnv -from .env import H2Conf +from .env import H2Conf, H2TestEnv +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") class TestRfc9113: @pytest.fixture(autouse=True, scope='class')