diff --git a/src/_pytest/capture.py b/src/_pytest/capture.py index e4e58b32c..2877f2215 100644 --- a/src/_pytest/capture.py +++ b/src/_pytest/capture.py @@ -703,7 +703,9 @@ class DontReadFromInput: encoding = None def read(self, *args): - raise IOError("reading from stdin while output is captured") + raise IOError( + "pytest: reading from stdin while output is captured! Consider using `-s`." + ) readline = read readlines = read