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

Method test_input_tty_nonencodable_prompt

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

Source from the content-addressed store, hash-verified

2764 'null characters')
2765
2766 def test_input_tty_nonencodable_prompt(self):
2767 self.check_input_tty("prompté", b"quux", "ascii", stdout_errors='strict',
2768 expected="UnicodeEncodeError: 'ascii' codec can't encode "
2769 "character '\\xe9' in position 6: ordinal not in "
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',

Callers

nothing calls this directly

Calls 1

check_input_ttyMethod · 0.95

Tested by

no test coverage detected