From a084ad543e30d5baa36793c512231ed336eea303 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 26 May 2025 17:07:37 +0200 Subject: [PATCH] pytest: do not use reserved chars in url queries Closes #17458 --- tests/http/test_07_upload.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/http/test_07_upload.py b/tests/http/test_07_upload.py index da6373a49c..40599c6ebe 100644 --- a/tests/http/test_07_upload.py +++ b/tests/http/test_07_upload.py @@ -179,7 +179,7 @@ class TestUpload: pytest.skip("h3 not supported") count = 2 upload_size = 128*1024 - url = f'https://localhost:{env.https_port}/curltest/put?id=[0-{count-1}]' + url = f'https://localhost:{env.https_port}/curltest/put' client = LocalClient(name='hx-upload', env=env) if not client.exists(): pytest.skip(f'example client not built: {client.name}') @@ -195,7 +195,7 @@ class TestUpload: pytest.skip("h3 not supported") count = 2 upload_size = 128*1024 - url = f'https://localhost:{env.https_port}/curltest/put?id=[0-{count-1}]' + url = f'https://localhost:{env.https_port}/curltest/put' client = LocalClient(name='hx-upload', env=env) if not client.exists(): pytest.skip(f'example client not built: {client.name}') @@ -211,7 +211,7 @@ class TestUpload: pytest.skip("h3 not supported") count = 2 upload_size = 128*1024 - url = f'https://localhost:{env.https_port}/curltest/echo?id=[0-{count-1}]' + url = f'https://localhost:{env.https_port}/curltest/echo' client = LocalClient(name='hx-upload', env=env) if not client.exists(): pytest.skip(f'example client not built: {client.name}') @@ -564,7 +564,7 @@ class TestUpload: client = LocalClient(name='upload-pausing', env=env, timeout=60) if not client.exists(): pytest.skip(f'example client not built: {client.name}') - url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]&just_die=1' + url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=0&just_die=1' r = client.run(['-V', proto, url]) exp_code = 52 # GOT_NOTHING if proto == 'h2' or proto == 'h3': @@ -581,7 +581,7 @@ class TestUpload: client = LocalClient(name='upload-pausing', env=env, timeout=60) if not client.exists(): pytest.skip(f'example client not built: {client.name}') - url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]&die_after_100=1' + url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=0&die_after_100=1' r = client.run(['-V', proto, url]) exp_code = 52 # GOT_NOTHING if proto == 'h2' or proto == 'h3': @@ -741,7 +741,7 @@ class TestUpload: port = env.port_for(proto) if proto != 'h3': port = env.nghttpx_https_port - url = f'https://{env.domain1}:{port}/curltest/put?id=[0-{count-1}]' + url = f'https://{env.domain1}:{port}/curltest/put' client = LocalClient(name='hx-upload', env=env) if not client.exists(): pytest.skip(f'example client not built: {client.name}')