Lines Matching refs:stdout
802 savestdout = sys.stdout
803 sys.stdout = None # Whatever that cannot flush()
810 sys.stdout = savestdout
932 self.assertTrue(getattr(sys, 'stdout') is sys.stdout)
943 self.assertTrue(hasattr(sys, 'stdout'))
1441 savestdout = sys.stdout # Eats the echo
1444 sys.stdout = BitBucket()
1450 # sys.stdout must be a regular file for triggering
1451 sys.stdout = savestdout
1455 sys.stdout = BitBucket()
1463 del sys.stdout
1469 sys.stdout = savestdout
2118 """Tests that use a pseudo terminal to guarantee stdin and stdout are
2200 if not sys.stdin.isatty() or not sys.stdout.isatty():
2201 self.skipTest("stdin and stdout must be ttys")
2208 sys.stdout = io.TextIOWrapper(sys.stdout.detach(),
2211 print("tty =", sys.stdin.isatty() and sys.stdout.isatty(), file=wpipe)
2242 # Check stdin/stdout encoding is used when invoking PyOS_Readline()
2247 # Check stdin/stdout error handler is used when invoking PyOS_Readline()
2251 # Issue #24402: If stdin is the original terminal but stdout.fileno()
2252 # fails, do not use the original stdout file descriptor
2255 sys.stdout = io.StringIO() # Does not support fileno()
2257 print("captured:", ascii(sys.stdout.getvalue()), file=wpipe)
2334 # "before" to sys.stdout.encoding. For example, on Windows,
2335 # sys.stdout.encoding is the OEM code page and these code pages are