changeset: 93608:c8bcede1b37a user: Ned Deily date: Wed Nov 26 13:02:33 2014 -0800 files: Lib/test/test_readline.py Modules/readline.c description: Issue 22940: fixes to editline support diff -r edc8a0bb95aa -r c8bcede1b37a Lib/test/test_readline.py --- a/Lib/test/test_readline.py Wed Nov 26 14:39:54 2014 -0600 +++ b/Lib/test/test_readline.py Wed Nov 26 13:02:33 2014 -0800 @@ -43,7 +43,7 @@ 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 -r edc8a0bb95aa -r c8bcede1b37a Modules/readline.c --- a/Modules/readline.c Wed Nov 26 14:39:54 2014 -0600 +++ b/Modules/readline.c Wed Nov 26 13:02:33 2014 -0800 @@ -786,8 +786,8 @@ METH_VARARGS, doc_write_history_file}, #ifdef HAVE_RL_APPEND_HISTORY {"append_history_file", append_history_file, + METH_VARARGS, doc_append_history_file}, #endif - METH_VARARGS, doc_append_history_file}, {"get_history_item", get_history_item, METH_VARARGS, doc_get_history_item}, {"get_current_history_length", (PyCFunction)get_current_history_length,