Lines Matching refs:stdout
274 # space error) on writing into stdout if stdout mode is binary and the
1120 stdout=subprocess.PIPE, text=True)
1121 self.assertEqual(proc.stdout.rstrip(), repr(value))
1125 stdout=subprocess.PIPE, text=True)
1126 self.assertEqual(proc.stdout.rstrip(), repr(None))
1530 support.is_emscripten, "Cannot dup stdout on Emscripten"
1822 'sys.stdout.buffer.write(data)',
1823 'sys.stdout.buffer.flush()'))
1825 stdout = out[1]
1826 self.assertEqual(len(stdout), count)
1827 return stdout
1923 sys.stdout.buffer.write(os.urandom(4))
1955 sys.stdout.buffer.write(os.urandom(4))
1956 sys.stdout.buffer.write(os.urandom(4))
2462 # Since we can't access the contents of the process' stdout until the
2463 # process has exited, use PeekNamedPipe to see what's inside stdout
2469 ctypes.POINTER(ctypes.c_char), # stdout buf
2477 "sys.stdout.write('{}');"
2478 "sys.stdout.flush();"
2480 stdout=subprocess.PIPE,
2483 self.addCleanup(proc.stdout.close)
2489 # Create a string buffer to store the result of stdout from the pipe
2491 # Obtain the text currently in proc.stdout
2493 rslt = PeekNamedPipe(msvcrt.get_osfhandle(proc.stdout.fileno()),
3055 stdout=subprocess.PIPE)
3056 stdout, _ = p.communicate()
3058 self.assertEqual(int(stdout), os.getpid())