|
Boost-Build : |
Subject: Re: [Boost-build] boost regression tests fail with python-2.7.14
From: Bruce Dubbs (bruce.dubbs_at_[hidden])
Date: 2017-12-23 03:03:23
Steven Watanabe via Boost-build wrote:
> AMDG
>
> On 12/22/2017 04:36 PM, Bruce Dubbs via Boost-build wrote:
>> If I build boost, the regression tests fail for me with python-2.7.14:
>>
>> cd tools/build/test
>> python test_all.py
>> Traceback (most recent call last):
>> File "test_all.py", line 9, in <module>
>> import BoostBuild
>> File "/tmp/boost/boost_1_66_0/tools/build/test/BoostBuild.py", line 8,
>> in <module>
>> import TestCmd
>> File "/tmp/boost/boost_1_66_0/tools/build/test/TestCmd.py", line 62,
>> in <module>
>> import shutil
>> File "/usr/lib/python2.7/shutil.py", line 16, in <module>
>> import zlib
>> File "/tmp/boost/boost_1_66_0/tools/build/test/zlib.py", line 11, in
>> <module>
>> t = BoostBuild.Tester(arguments=['toolset=mock',
>> '--ignore-site-config', '--user-config='], pass_toolset=0)
>> AttributeError: 'module' object has no attribute 'Tester'
>>
>
> The reason this is happening is that the zlib
> test module inadvertently replaces python's
> built in zlib module.
Thank you. If I rename tools/build/test/zlib.py to something else, the
tests all pass normally.
-- Bruce
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk