bpo-29854: test_readline logs versions (#2619)

* test_readline logs the versions of libreadline when run in verbose
  mode
* Add also readline._READLINE_LIBRARY_VERSION
This commit is contained in:
Victor Stinner 2017-07-07 16:06:58 +02:00 committed by GitHub
parent fae8f4a9cb
commit 1881befb90
2 changed files with 19 additions and 2 deletions

View file

@ -1427,6 +1427,7 @@ PyInit_readline(void)
PyModule_AddIntConstant(m, "_READLINE_VERSION", RL_READLINE_VERSION);
PyModule_AddIntConstant(m, "_READLINE_RUNTIME_VERSION", rl_readline_version);
PyModule_AddStringConstant(m, "_READLINE_LIBRARY_VERSION", rl_library_version);
return m;
}