Ned Deily added the comment: The patch doesn't take into account that the readline module may be linked with BSD libedit (as is the default on OS X and is preferred by some third-party distributors) rather than GNU readline. The patch causes the test to be incorrectly skipped on those platforms.
>>> readline._READLINE_VERSION 1026 The documented way of differentiating the two cases is by checking the __doc__ string for "readline" or "libedit": >>> readline.__doc__ 'Importing this module enables command line editing using libedit readline.' vs. >>> readline.__doc__ 'Importing this module enables command line editing using GNU readline.' ---------- nosy: +ned.deily _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22773> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com