Kaydet (Commit) deb925fc authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Skip early if stdin and stdout are not ttys

......@@ -1008,6 +1008,8 @@ class BuiltinTest(unittest.TestCase):
@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()
try:
pid, fd = pty.fork()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment