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

Method test_input_tty_nondecodable_input

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

Source from the content-addressed store, hash-verified

2770 "range(128)")
2771
2772 def test_input_tty_nondecodable_input(self):
2773 self.check_input_tty("prompt", b"quux\xe9", "ascii", stdin_errors='strict',
2774 expected="UnicodeDecodeError: 'ascii' codec can't decode "
2775 "byte 0xe9 in position 4: ordinal not in "
2776 "range(128)")
2777
2778 def test_input_no_stdout_fileno(self):
2779 # Issue #24402: If stdin is the original terminal but stdout.fileno()

Callers

nothing calls this directly

Calls 1

check_input_ttyMethod · 0.95

Tested by

no test coverage detected