test_run_stdin: add sleep

This commit is contained in:
Daniel Hahler 2019-04-10 00:03:49 +02:00
parent ec46864922
commit b84f826fc8
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ def test_run_stdin(testdir):
testdir.run( testdir.run(
sys.executable, sys.executable,
"-c", "-c",
"import sys; print(sys.stdin.read())", "import sys, time; time.sleep(1); print(sys.stdin.read())",
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
timeout=0.1, timeout=0.1,
) )