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

Method test_input_tty_null_in_prompt

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

Source from the content-addressed store, hash-verified

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"",
2763 expected='ValueError: input: prompt string cannot contain '
2764 'null characters')
2765
2766 def test_input_tty_nonencodable_prompt(self):
2767 self.check_input_tty("prompté", b"quux", "ascii", stdout_errors='strict',

Callers

nothing calls this directly

Calls 1

check_input_ttyMethod · 0.95

Tested by

no test coverage detected