diff --git a/tests/test_uploads.py b/tests/test_uploads.py index 5695d0c8c2..2040efd051 100644 --- a/tests/test_uploads.py +++ b/tests/test_uploads.py @@ -124,7 +124,7 @@ def stdin_processes(httpbin, *args): @pytest.mark.requires_external_processes @pytest.mark.skipif(is_windows, reason="Windows doesn't support select() calls into files") def test_reading_from_stdin(httpbin, wait): - with stdin_processes(httpbin) as (process_1, process_2): + with stdin_processes(httpbin, '--chunked') as (process_1, process_2): process_1.communicate(timeout=0.1, input=b"bleh") # Since there is data, it doesn't matter if there # you wait or not. @@ -142,7 +142,7 @@ def test_reading_from_stdin(httpbin, wait): @pytest.mark.requires_external_processes @pytest.mark.skipif(is_windows, reason="Windows doesn't support select() calls into files") def test_stdin_read_warning(httpbin): - with stdin_processes(httpbin) as (process_1, process_2): + with stdin_processes(httpbin, '--chunked') as (process_1, process_2): # Wait before sending any data time.sleep(1) process_1.communicate(timeout=0.1, input=b"bleh\n") @@ -158,7 +158,7 @@ def test_stdin_read_warning(httpbin): @pytest.mark.requires_external_processes @pytest.mark.skipif(is_windows, reason="Windows doesn't support select() calls into files") def test_stdin_read_warning_with_quiet(httpbin): - with stdin_processes(httpbin, "-qq") as (process_1, process_2): + with stdin_processes(httpbin, '--chunked', "-qq") as (process_1, process_2): # Wait before sending any data time.sleep(1) process_1.communicate(timeout=0.1, input=b"bleh\n")