Kaydet (Commit) 8007cbc4 authored tarafından Ned Deily's avatar Ned Deily

Issue 22940: fixes to editline support

üst 3663b586
......@@ -43,7 +43,7 @@ class TestHistoryManipulation (unittest.TestCase):
self.assertEqual(readline.get_current_history_length(), 1)
@unittest.skipUnless(hasattr(readline, "append_history"),
@unittest.skipUnless(hasattr(readline, "append_history_file"),
"append_history not available")
def test_write_read_append(self):
hfile = tempfile.NamedTemporaryFile(delete=False)
......
......@@ -786,8 +786,8 @@ static struct PyMethodDef readline_methods[] =
METH_VARARGS, doc_write_history_file},
#ifdef HAVE_RL_APPEND_HISTORY
{"append_history_file", append_history_file,
#endif
METH_VARARGS, doc_append_history_file},
#endif
{"get_history_item", get_history_item,
METH_VARARGS, doc_get_history_item},
{"get_current_history_length", (PyCFunction)get_current_history_length,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment