test_07_upload: skip tests if nghttpx lacks QUIC

If nghttpx is available but lacks QUIC support, disable the tests that
depend on that support.

Co-authored-by: Stefan Eissing
Fixes #22609
Closes #22624
This commit is contained in:
Dan Fandrich 2026-08-19 09:27:38 -07:00
parent 9b29495863
commit f31251b645

View file

@ -654,7 +654,7 @@ class TestUpload:
r.check_exit_code(0)
# nghttpx is the only server we have that supports TLS early data
@pytest.mark.skipif(condition=not Env.have_nghttpx(), reason="no nghttpx")
@pytest.mark.skipif(condition=not Env.have_h3_server(), reason="no QUIC in nghttpx")
@pytest.mark.parametrize("proto,upload_size", [
pytest.param('http/1.1', 100, id='h1-small-body'),
pytest.param('http/1.1', 10 * 1024, id='h1-medium-body'),