@@ -2241,6 +2241,7 @@ def child(wpipe):
22412241 expected = terminal_input .decode (sys .stdin .encoding ) # what else?
22422242 self .assertEqual (input_result , expected )
22432243
2244+ @unittest .expectedFailure # TODO: RUSTPYTHON
22442245 def test_input_tty (self ):
22452246 # Test input() functionality when wired to a tty (the code path
22462247 # is different and invokes GNU readline if available).
@@ -2257,17 +2258,20 @@ def skip_if_readline(self):
22572258 self .skipTest ("the readline module is loaded" )
22582259
22592260 @unittest .skipUnless (hasattr (sys .stdin , 'detach' ), 'TODO: RustPython: requires detach function in TextIOWrapper' )
2261+ @unittest .expectedFailure # TODO: RUSTPYTHON AssertionError: got 0 lines in pipe but expected 2, child output was: quux
22602262 def test_input_tty_non_ascii (self ):
22612263 self .skip_if_readline ()
22622264 # Check stdin/stdout encoding is used when invoking PyOS_Readline()
22632265 self .check_input_tty ("prompté" , b"quux\xe9 " , "utf-8" )
22642266
22652267 @unittest .skipUnless (hasattr (sys .stdin , 'detach' ), 'TODO: RustPython: requires detach function in TextIOWrapper' )
2268+ @unittest .expectedFailure # TODO: RUSTPYTHON AssertionError: got 0 lines in pipe but expected 2, child output was: quux
22662269 def test_input_tty_non_ascii_unicode_errors (self ):
22672270 self .skip_if_readline ()
22682271 # Check stdin/stdout error handler is used when invoking PyOS_Readline()
22692272 self .check_input_tty ("prompté" , b"quux\xe9 " , "ascii" )
22702273
2274+ @unittest .expectedFailure # TODO: RUSTPYTHON AssertionError: got 0 lines in pipe but expected 2, child output was: quux
22712275 def test_input_no_stdout_fileno (self ):
22722276 # Issue #24402: If stdin is the original terminal but stdout.fileno()
22732277 # fails, do not use the original stdout file descriptor
0 commit comments