From: Ned Deily Date: Wed, 26 Nov 2014 21:02:33 +0000 (-0800) Subject: Issue 22940: fixes to editline support X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8007cbc4d52da93237c9476da473840b047a9a14;p=python Issue 22940: fixes to editline support --- diff --git a/Lib/test/test_readline.py b/Lib/test/test_readline.py index 90dcdf21ee..23d6194e8e 100644 --- a/Lib/test/test_readline.py +++ b/Lib/test/test_readline.py @@ -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) diff --git a/Modules/readline.c b/Modules/readline.c index 7e0282c578..26dfffbfaa 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -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,