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

Method test_auto_history_enabled

Lib/test/test_readline.py:197–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

195"""
196
197 def test_auto_history_enabled(self):
198 output = run_pty(self.auto_history_script.format(True))
199 # bpo-44949: Sometimes, the newline character is not written at the
200 # end, so don't expect it in the output.
201 self.assertIn(b"History length: 1", output)
202
203 def test_auto_history_disabled(self):
204 output = run_pty(self.auto_history_script.format(False))

Callers

nothing calls this directly

Calls 3

run_ptyFunction · 0.90
assertInMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected