From: Stefan Eissing Date: Thu, 7 May 2026 09:46:23 +0000 (+0000) Subject: modern python fixes: X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d7ba6ce100408ddb5e1f00ec20fb16e737ed98f;p=thirdparty%2Fapache%2Fhttpd.git modern python fixes: - rename hook parameter, because python thought this is a super good idea - change call property to method because it no longer worked git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933904 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/conftest.py b/test/conftest.py index ac0a7c553d8..390a33bec5d 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -7,7 +7,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '.')) from pyhttpd.env import HttpdTestEnv -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = HttpdTestEnv() return f"[apache httpd: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]" diff --git a/test/modules/core/conftest.py b/test/modules/core/conftest.py index a14bdfb6752..72c52fa9fa0 100644 --- a/test/modules/core/conftest.py +++ b/test/modules/core/conftest.py @@ -10,7 +10,7 @@ from pyhttpd.env import HttpdTestEnv sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = CoreTestEnv() return f"core [apache: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]" diff --git a/test/modules/http1/conftest.py b/test/modules/http1/conftest.py index 45b26c1796f..be3d76aa0df 100644 --- a/test/modules/http1/conftest.py +++ b/test/modules/http1/conftest.py @@ -9,7 +9,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) from .env import H1TestEnv -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = H1TestEnv() return f"mod_http [apache: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]" diff --git a/test/modules/http2/conftest.py b/test/modules/http2/conftest.py index 118cef1a950..90cd6a7c853 100644 --- a/test/modules/http2/conftest.py +++ b/test/modules/http2/conftest.py @@ -9,7 +9,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) from .env import H2TestEnv -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = H2TestEnv() return f"mod_h2 [apache: {env.get_httpd_version()}, mpm: {env.mpm_module}, {env.prefix}]" diff --git a/test/modules/http2/env.py b/test/modules/http2/env.py index b2443e003b6..e2647616aaf 100644 --- a/test/modules/http2/env.py +++ b/test/modules/http2/env.py @@ -64,7 +64,6 @@ class H2TestSetup(HttpdTestSetup): class H2TestEnv(HttpdTestEnv): @classmethod - @property def is_unsupported(cls): mpm_module = f"mpm_{os.environ['MPM']}" if 'MPM' in os.environ else 'mpm_event' return mpm_module == 'mpm_prefork' diff --git a/test/modules/http2/test_001_httpd_alive.py b/test/modules/http2/test_001_httpd_alive.py index b5708d28134..d81269594c1 100644 --- a/test/modules/http2/test_001_httpd_alive.py +++ b/test/modules/http2/test_001_httpd_alive.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestBasicAlive: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_002_curl_basics.py b/test/modules/http2/test_002_curl_basics.py index 91be772114e..2c8886ddec4 100644 --- a/test/modules/http2/test_002_curl_basics.py +++ b/test/modules/http2/test_002_curl_basics.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestCurlBasics: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_003_get.py b/test/modules/http2/test_003_get.py index 572c4fb7023..80edefbb7ba 100644 --- a/test/modules/http2/test_003_get.py +++ b/test/modules/http2/test_003_get.py @@ -4,7 +4,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestGet: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_004_post.py b/test/modules/http2/test_004_post.py index 295f989b88e..3edb218e7c3 100644 --- a/test/modules/http2/test_004_post.py +++ b/test/modules/http2/test_004_post.py @@ -12,7 +12,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestPost: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_005_files.py b/test/modules/http2/test_005_files.py index e7618362c52..40abbf659a8 100644 --- a/test/modules/http2/test_005_files.py +++ b/test/modules/http2/test_005_files.py @@ -15,7 +15,7 @@ def mk_text_file(fpath: str, lines: int): fd.write("\n") -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestFiles: URI_PATHS = [] diff --git a/test/modules/http2/test_006_assets.py b/test/modules/http2/test_006_assets.py index 778314eda02..d02e8dc4b2d 100644 --- a/test/modules/http2/test_006_assets.py +++ b/test/modules/http2/test_006_assets.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestAssets: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_007_ssi.py b/test/modules/http2/test_007_ssi.py index f5411bccd43..1da48ff4546 100644 --- a/test/modules/http2/test_007_ssi.py +++ b/test/modules/http2/test_007_ssi.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestSSI: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_008_ranges.py b/test/modules/http2/test_008_ranges.py index dd695bb08d1..53664e1db44 100644 --- a/test/modules/http2/test_008_ranges.py +++ b/test/modules/http2/test_008_ranges.py @@ -11,7 +11,7 @@ from .env import H2Conf, H2TestEnv log = logging.getLogger(__name__) -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestRanges: LOGFILE = "" diff --git a/test/modules/http2/test_009_timing.py b/test/modules/http2/test_009_timing.py index 2784f9ad35a..94895cc35fe 100644 --- a/test/modules/http2/test_009_timing.py +++ b/test/modules/http2/test_009_timing.py @@ -6,7 +6,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") @pytest.mark.skipif(not H2TestEnv().h2load_is_at_least('1.41.0'), reason="h2load misses --connect-to option") class TestTiming: diff --git a/test/modules/http2/test_100_conn_reuse.py b/test/modules/http2/test_100_conn_reuse.py index 103166fa301..ed958eb2849 100644 --- a/test/modules/http2/test_100_conn_reuse.py +++ b/test/modules/http2/test_100_conn_reuse.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestConnReuse: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_101_ssl_reneg.py b/test/modules/http2/test_101_ssl_reneg.py index d278af21ed4..7bd10f5555f 100644 --- a/test/modules/http2/test_101_ssl_reneg.py +++ b/test/modules/http2/test_101_ssl_reneg.py @@ -4,7 +4,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") @pytest.mark.skipif(H2TestEnv.get_ssl_module() != "mod_ssl", reason="only for mod_ssl") class TestSslRenegotiation: diff --git a/test/modules/http2/test_102_require.py b/test/modules/http2/test_102_require.py index 4b0cad56a24..e97fb19ce50 100644 --- a/test/modules/http2/test_102_require.py +++ b/test/modules/http2/test_102_require.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestRequire: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_103_upgrade.py b/test/modules/http2/test_103_upgrade.py index 1542450df93..b04aca42097 100644 --- a/test/modules/http2/test_103_upgrade.py +++ b/test/modules/http2/test_103_upgrade.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestUpgrade: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_104_padding.py b/test/modules/http2/test_104_padding.py index 401804ade86..35a5ba32fc1 100644 --- a/test/modules/http2/test_104_padding.py +++ b/test/modules/http2/test_104_padding.py @@ -8,7 +8,7 @@ def frame_padding(payload, padbits): return ((payload + 9 + mask) & ~mask) - (payload + 9) -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestPadding: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_106_shutdown.py b/test/modules/http2/test_106_shutdown.py index fab881bcac7..33fe5adfdad 100644 --- a/test/modules/http2/test_106_shutdown.py +++ b/test/modules/http2/test_106_shutdown.py @@ -11,7 +11,7 @@ from .env import H2Conf, H2TestEnv from pyhttpd.result import ExecResult -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestShutdown: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_107_frame_lengths.py b/test/modules/http2/test_107_frame_lengths.py index d6360939bea..ac855450e01 100644 --- a/test/modules/http2/test_107_frame_lengths.py +++ b/test/modules/http2/test_107_frame_lengths.py @@ -15,7 +15,7 @@ def mk_text_file(fpath: str, lines: int): fd.write("\n") -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestFrameLengths: URI_PATHS = [] diff --git a/test/modules/http2/test_200_header_invalid.py b/test/modules/http2/test_200_header_invalid.py index 1687e3d9818..adb203b5b6b 100644 --- a/test/modules/http2/test_200_header_invalid.py +++ b/test/modules/http2/test_200_header_invalid.py @@ -4,7 +4,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestInvalidHeaders: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_201_header_conditional.py b/test/modules/http2/test_201_header_conditional.py index f1032683bf4..a7dbe7a6dcc 100644 --- a/test/modules/http2/test_201_header_conditional.py +++ b/test/modules/http2/test_201_header_conditional.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestConditionalHeaders: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_202_trailer.py b/test/modules/http2/test_202_trailer.py index 6c4e05d3d99..caef900097f 100644 --- a/test/modules/http2/test_202_trailer.py +++ b/test/modules/http2/test_202_trailer.py @@ -13,7 +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") +@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 143c0fc930d..b1a6d02a5de 100644 --- a/test/modules/http2/test_203_rfc9113.py +++ b/test/modules/http2/test_203_rfc9113.py @@ -5,7 +5,7 @@ from pyhttpd.env import HttpdTestEnv from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestRfc9113: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_300_interim.py b/test/modules/http2/test_300_interim.py index 774ab88a061..efe777a258d 100644 --- a/test/modules/http2/test_300_interim.py +++ b/test/modules/http2/test_300_interim.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestInterimResponses: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_400_push.py b/test/modules/http2/test_400_push.py index 9c61608d871..1cd2a6ad77d 100644 --- a/test/modules/http2/test_400_push.py +++ b/test/modules/http2/test_400_push.py @@ -5,7 +5,7 @@ from .env import H2Conf, H2TestEnv # The push tests depend on "nghttp" -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestPush: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_401_early_hints.py b/test/modules/http2/test_401_early_hints.py index 57043052c2c..4c1f61ba5ba 100644 --- a/test/modules/http2/test_401_early_hints.py +++ b/test/modules/http2/test_401_early_hints.py @@ -4,7 +4,7 @@ from .env import H2Conf, H2TestEnv # The push tests depend on "nghttp" -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestEarlyHints: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_500_proxy.py b/test/modules/http2/test_500_proxy.py index 87e523c4a21..cca286aa3f7 100644 --- a/test/modules/http2/test_500_proxy.py +++ b/test/modules/http2/test_500_proxy.py @@ -6,7 +6,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestProxy: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_501_proxy_serverheader.py b/test/modules/http2/test_501_proxy_serverheader.py index 0d7c1889005..fab22b90d92 100644 --- a/test/modules/http2/test_501_proxy_serverheader.py +++ b/test/modules/http2/test_501_proxy_serverheader.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestProxyServerHeader: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_502_proxy_port.py b/test/modules/http2/test_502_proxy_port.py index f6c6db156fb..3bbe75943ae 100644 --- a/test/modules/http2/test_502_proxy_port.py +++ b/test/modules/http2/test_502_proxy_port.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestProxyPort: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_503_proxy_fwd.py b/test/modules/http2/test_503_proxy_fwd.py index 478a52d08c9..e007325f7ef 100644 --- a/test/modules/http2/test_503_proxy_fwd.py +++ b/test/modules/http2/test_503_proxy_fwd.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestProxyFwd: @classmethod diff --git a/test/modules/http2/test_600_h2proxy.py b/test/modules/http2/test_600_h2proxy.py index 18a528e9c95..0f69ea741d0 100644 --- a/test/modules/http2/test_600_h2proxy.py +++ b/test/modules/http2/test_600_h2proxy.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestH2Proxy: def test_h2_600_01(self, env): diff --git a/test/modules/http2/test_601_h2proxy_twisted.py b/test/modules/http2/test_601_h2proxy_twisted.py index 60f5f7df5bf..52aaa09d543 100644 --- a/test/modules/http2/test_601_h2proxy_twisted.py +++ b/test/modules/http2/test_601_h2proxy_twisted.py @@ -9,7 +9,7 @@ from .env import H2Conf, H2TestEnv log = logging.getLogger(__name__) -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestH2ProxyTwisted: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_700_load_get.py b/test/modules/http2/test_700_load_get.py index 138e74ce858..b5a6b73cb72 100644 --- a/test/modules/http2/test_700_load_get.py +++ b/test/modules/http2/test_700_load_get.py @@ -3,7 +3,7 @@ import pytest from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") @pytest.mark.skipif(not H2TestEnv().h2load_is_at_least('1.41.0'), reason="h2load misses --connect-to option") class TestLoadGet: diff --git a/test/modules/http2/test_710_load_post_static.py b/test/modules/http2/test_710_load_post_static.py index ad8ae96aefd..2eb606bf4a8 100644 --- a/test/modules/http2/test_710_load_post_static.py +++ b/test/modules/http2/test_710_load_post_static.py @@ -4,7 +4,7 @@ import os from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestLoadPostStatic: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_711_load_post_cgi.py b/test/modules/http2/test_711_load_post_cgi.py index 82529d17644..f2ff19b83b3 100644 --- a/test/modules/http2/test_711_load_post_cgi.py +++ b/test/modules/http2/test_711_load_post_cgi.py @@ -4,7 +4,7 @@ import os from .env import H2Conf, H2TestEnv -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestLoadCgi: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_712_buffering.py b/test/modules/http2/test_712_buffering.py index 0a6978b4277..89053e35d68 100644 --- a/test/modules/http2/test_712_buffering.py +++ b/test/modules/http2/test_712_buffering.py @@ -6,7 +6,7 @@ from .env import H2Conf, H2TestEnv from pyhttpd.curl import CurlPiper -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") class TestBuffering: @pytest.fixture(autouse=True, scope='class') diff --git a/test/modules/http2/test_800_websockets.py b/test/modules/http2/test_800_websockets.py index c0fc0c23dcb..5c49ded6565 100644 --- a/test/modules/http2/test_800_websockets.py +++ b/test/modules/http2/test_800_websockets.py @@ -83,7 +83,7 @@ def ws_run(env: H2TestEnv, path, authority=None, do_input=None, inbytes=None, stdout=b'', stderr=b'', duration=end - start), infos, frames -@pytest.mark.skipif(condition=H2TestEnv.is_unsupported, reason="mod_http2 not supported here") +@pytest.mark.skipif(condition=H2TestEnv.is_unsupported(), reason="mod_http2 not supported here") @pytest.mark.skipif(condition=not H2TestEnv().httpd_is_at_least("2.4.60"), reason=f'need at least httpd 2.4.60 for this') @pytest.mark.skipif(condition=ws_version < ws_version_min, diff --git a/test/modules/proxy/conftest.py b/test/modules/proxy/conftest.py index c92e363e2a5..cdc779f00f4 100644 --- a/test/modules/proxy/conftest.py +++ b/test/modules/proxy/conftest.py @@ -8,7 +8,7 @@ from .env import ProxyTestEnv sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) -def pytest_report_header(config, startdir): +def pytest_report_header(config, start_path): env = ProxyTestEnv() return "mod_proxy: [apache: {aversion}({prefix})]".format( prefix=env.prefix,