title: OSError: pytest: reading from stdin while output is captured! Consider using `-s`
body: <p>While running a particular unittest with pytest, it occasionally fails with this error (mentioned in the title) and from the stack trace it happens on the line</p>
  <pre><code>    self = &lt;_pytest.capture.DontReadFromInput object at 0x0000024AD00E7668&gt;
  args = ()
  
      def read(self, *args):
          raise IOError(
  &gt;           &quot;pytest: reading from stdin while output is captured!  Consider using `-s`.&quot;
          )
  E       OSError: pytest: reading from stdin while output is captured!  Consider using `-s`.
  </code></pre>
  <p>Error location code：</p>
  <pre><code>def setUp(self):
      desired_caps = {}
      id = input(&quot;please input your number：&quot;)
  </code></pre>