From b84f826fc8a4f305309d699b3bc2f1dbd3d9672d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 10 Apr 2019 00:03:49 +0200 Subject: [PATCH] test_run_stdin: add sleep --- testing/test_pytester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_pytester.py b/testing/test_pytester.py index f3b5f70e2..b76d413b7 100644 --- a/testing/test_pytester.py +++ b/testing/test_pytester.py @@ -490,7 +490,7 @@ def test_run_stdin(testdir): testdir.run( sys.executable, "-c", - "import sys; print(sys.stdin.read())", + "import sys, time; time.sleep(1); print(sys.stdin.read())", stdin=subprocess.PIPE, timeout=0.1, )