boost regression tests fail with python-2.7.14

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

boost regression tests fail with python-2.7.14

Boost - Build mailing list
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'

----
If I revert to python-2.7.13, all tests pass.  I do not know enough about
python to determine if the problem is in boost or python.

I had the same results for boot-1.65.1 and boost-1.66.0.

If it helps, the python release notes are at

https://raw.githubusercontent.com/python/cpython/84471935ed2f62b8c5758fd544c7d37076fe0fa5/Misc/NEWS

   -- Bruce Dubbs
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: boost regression tests fail with python-2.7.14

Boost - Build mailing list
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.

> ----
> If I revert to python-2.7.13, all tests pass.  I do not know enough
> about python to determine if the problem is in boost or python.
>

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: boost regression tests fail with python-2.7.14

Boost - Build mailing list
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


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: boost regression tests fail with python-2.7.14

Boost - Build mailing list
AMDG

On 12/22/2017 08:03 PM, Bruce Dubbs wrote:
> Steven Watanabe via Boost-build wrote:
>>
>>    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.
>

  It might help to switch test_all.py to use
execfile instead of __import__, since we don't
actually need the test to be registered as a module.

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build