Skip to content

Commit

Permalink
Don't issue redundant stdin detection warning when is in place.
Browse files Browse the repository at this point in the history
  • Loading branch information
isidentical committed Feb 25, 2022
1 parent ad613f2 commit 4881049
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_uploads.py
Expand Up @@ -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.
Expand All @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 4881049

Please sign in to comment.