bpo-29854: Print readline version information when running test suite by berkerpeksag · Pull Request #2618 · python/cpython (original) (raw)
Why would we want to print curses version in test_readline? Unless I'm missing something, curses doesn't have anything to do with bpo-29854.
Oh sorry, I'm always confused between readline and curses, they are the same thing for me, sorry :-)
By the way, you should mention bpo-29854 in your PR title. It helps later to get the rationale of a change ;-)
tcl and gdb are much less common dependencies than readline. readline is probably available on all Unix platforms and I think it makes sense to easily see which version is installed on the host.
Another issue with importing readline early is that importing a module has side effect, especially readline. See for example http://bugs.python.org/issue19884 and TestReadline.test_init(): this test still fails on our RHEL buildbot, so importing readline still have an annoying side effect of writing a string into stdout.
I would prefer to limit imports at regrtest startup, to make it more deterministic.
I prefer not to spend too much time to find which version of readline installed at http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/908/steps/test/logs/stdio
Would you mind to review my PR #2619? When it will be merged, I can retrieve the libreadline version for you and put it in the issue.