Lines Matching refs:stderr
88 # -v causes imports to write to stderr. If the write to
89 # stderr itself causes an import to happen (for the output
117 # the refcount from stderr. It can be replaced once
122 p = subprocess.Popen(cmd, stdout=PIPE, stderr=PIPE)
125 p.stderr.close()
234 stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
236 stdout, stderr = p.communicate()
317 stdout, stderr = p.communicate()
326 err = sys.stderr
331 stderr=subprocess.PIPE, text=True, check=True)
338 for stream in ('stdout', 'stderr'):
343 data = err if stream == 'stderr' else out
349 data = err if stream == 'stderr' else out
404 stderr=subprocess.STDOUT,
423 stdout, stderr = proc.communicate()
445 print(3, file=sys.stderr)
446 print(4, file=sys.stderr)"""
501 if 'stderr' in streams:
507 stderr=subprocess.PIPE,
520 self._test_no_stdio(['stderr'])
523 self._test_no_stdio(['stdin', 'stdout', 'stderr'])
579 # to env_vars and change the output of stderr
614 stderr=subprocess.DEVNULL)
631 "sys.stderr.write(str(sys.flags)); "
680 stderr=subprocess.STDOUT,
761 stderr=subprocess.STDOUT,
799 stderr=subprocess.STDOUT,
865 stderr=subprocess.PIPE,
868 self.assertTrue(proc.stderr.startswith(err_msg), proc.stderr)
916 code = "import sys; sys.stderr.write(str(sys.flags)); sys.exit(not ({}))".format(predicate)
948 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
950 self.assertNotEqual(proc.stderr, None)
951 self.assertIn(b"\nSyntaxError", proc.stderr)