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, )