This commit is contained in:
commit
d39e199a0d
|
@ -44,6 +44,10 @@ class TestHistoryManipulation (unittest.TestCase):
|
|||
|
||||
|
||||
class TestReadline(unittest.TestCase):
|
||||
|
||||
@unittest.skipIf(readline._READLINE_VERSION < 0x0600
|
||||
and "libedit" not in readline.__doc__,
|
||||
"not supported in this library version")
|
||||
def test_init(self):
|
||||
# Issue #19884: Ensure that the ANSI sequence "\033[1034h" is not
|
||||
# written into stdout when the readline module is imported and stdout
|
||||
|
|
|
@ -1285,5 +1285,9 @@ PyInit_readline(void)
|
|||
mod_state = (readlinestate *) PyModule_GetState(m);
|
||||
PyOS_ReadlineFunctionPointer = call_readline;
|
||||
setup_readline(mod_state);
|
||||
|
||||
PyModule_AddIntConstant(m, "_READLINE_VERSION", RL_READLINE_VERSION);
|
||||
PyModule_AddIntConstant(m, "_READLINE_RUNTIME_VERSION", rl_readline_version);
|
||||
|
||||
return m;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue