From 3f283e90c38d250b0d06066336f1f163041e031b Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Wed, 30 Aug 2023 11:18:17 +0200 Subject: [PATCH] test_07_upload.py: fix test_07_34 curl args - Pass correct filename to --data-binary. Prior to this change --data-binary was passed an incorrect filename due to a missing separator in the arguments list. Since aacbeae7 curl will error on incorrect filenames for POST. Fixes https://github.com/curl/curl/issues/11761 Closes https://github.com/curl/curl/pull/11763 --- tests/http/test_07_upload.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/http/test_07_upload.py b/tests/http/test_07_upload.py index 6804b6b89c..60963f0ea7 100644 --- a/tests/http/test_07_upload.py +++ b/tests/http/test_07_upload.py @@ -287,7 +287,6 @@ class TestUpload: def test_07_34_issue_11194(self, env: Env, httpd, nghttpx, repeat): proto = 'h2' - fdata = os.path.join(env.gen_dir, 'data-10m') # tell our test PUT handler to read the upload more slowly, so # that the send buffering and transfer loop needs to wait fdata = os.path.join(env.gen_dir, 'data-100k') @@ -299,7 +298,7 @@ class TestUpload: '--cacert', env.ca.cert_file, '--request', 'PUT', '--digest', '--user', 'test:test', - '--data-binary', f'@{fdata}' + '--data-binary', f'@{fdata}', '--url', url, ]) assert r.exit_code == 0, r.dump_logs() -- 2.47.3