Antoine Pitrou  committed a09677c

Skip early if stdin and stdout are not ttys

  • Participants
  • Parent commits da46c53
  • Branches 3.2

Comments (0)

Files changed (1)

File Lib/test/

     @unittest.skipUnless(pty, "the pty and signal modules must be available")
     def check_input_tty(self, prompt, terminal_input, stdio_encoding=None):
+        if not sys.stdin.isatty() or not sys.stdout.isatty():
+            self.skipTest("stdin and stdout must be ttys")
         r, w = os.pipe()
             pid, fd = pty.fork()