summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-11-04 13:52:10 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-11-04 13:52:10 (GMT)
commit7e8b8678f141d4e8198002972219895280b2d62d (patch)
treeaf6263e645a511daf895ebbfbdcd04ae205a8435 /Modules
parent1ea070e56185889f2e0360a3d0c03e35af744bf6 (diff)
downloadcpython-7e8b8678f141d4e8198002972219895280b2d62d.zip
cpython-7e8b8678f141d4e8198002972219895280b2d62d.tar.gz
cpython-7e8b8678f141d4e8198002972219895280b2d62d.tar.bz2
Issue #22773: fix failing test with old readline versions due to issue #19884.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/readline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index ae83807..f349d3b 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -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;
}