diff --git a/src/_pytest/capture.py b/src/_pytest/capture.py index 56707822d..0cd3ce604 100644 --- a/src/_pytest/capture.py +++ b/src/_pytest/capture.py @@ -696,7 +696,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