MCPcopy Index your code
hub / github.com/python/cpython / test_input_tty_non_ascii_unicode_errors

Method test_input_tty_non_ascii_unicode_errors

Lib/test/test_builtin.py:2757–2759  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2755 self.check_input_tty("prompté", b"quux\xc3\xa9", "utf-8")
2756
2757 def test_input_tty_non_ascii_unicode_errors(self):
2758 # Check stdin/stdout error handler is used when invoking PyOS_Readline()
2759 self.check_input_tty("prompté", b"quux\xe9", "ascii")
2760
2761 def test_input_tty_null_in_prompt(self):
2762 self.check_input_tty("prompt\0", b"",

Callers

nothing calls this directly

Calls 1

check_input_ttyMethod · 0.95

Tested by

no test coverage detected