MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_input_tty_null_in_prompt

Method test_input_tty_null_in_prompt

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

Source from the content-addressed store, hash-verified

2711 self.check_input_tty("prompté", b"quux\xe9", "ascii")
2712
2713 def test_input_tty_null_in_prompt(self):
2714 self.check_input_tty("prompt\0", b"",
2715 expected='ValueError: input: prompt string cannot contain '
2716 'null characters')
2717
2718 def test_input_tty_nonencodable_prompt(self):
2719 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