Message230382
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.' |
|
| Date |
User |
Action |
Args |
| 2014-10-31 20:22:26 | ned.deily | set | recipients:
+ ned.deily, pitrou, vstinner, Arfrever, David.Edelsohn |
| 2014-10-31 20:22:26 | ned.deily | set | messageid: <[email protected]> |
| 2014-10-31 20:22:26 | ned.deily | link | issue22773 messages |
| 2014-10-31 20:22:26 | ned.deily | create | |
|