Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5154: 1.45.0 python OS X 10.6 test_extending.py hangs
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-19 23:14:57
#5154: 1.45.0 python OS X 10.6 test_extending.py hangs
------------------------------------+---------------------------------------
Reporter: seb@⦠| Owner: dave
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Python
Version: Boost 1.46.1 | Severity: Showstopper
Resolution: | Keywords:
------------------------------------+---------------------------------------
Comment (by jamestwebber@â¦):
(I've searched for answers to this for a long time, so I'm going to post
my solution in multiple places)
I was able to get all Boost Python tests (in /test and in
/example/quickstart) by '''uninstalling''' the Homebrew-installed
readline. This strongly suggests to me that a bug in readline is causing
these tests to fail.
While trying to figure this out, I noticed that only the tests using
doctest were failing. doctest uses readline internally, and this might be
causing an issue. As has been noted in other places, readline seems to
have a bug in which it emits an extra character when first imported in
python. At first this seemed unrelated but now I think it (or some other
readline bug) is the cause of much headaches.
This is rather unfortunate because uninstalling readline breaks the Python
REPL (e.g. arrow keys no longer work). So obviously this is not a long-
term fix, but it does answer some questions. Weirdly, readline is not
necessarily for doctests to function.
So, I don't have a patch or anything, but I think I have tracked down the
bug to readline.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5154#comment:4> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC