|
Boost Testing : |
Subject: Re: [Boost-testing] Switched to Python 3
From: Jim Bell (Jim_at_[hidden])
Date: 2010-10-23 13:06:30
On 1:59 PM, Maxime van Noppen wrote:
> On 10/22/2010 06:10 PM, Jim Bell wrote:
>> Has anyone tried running 2to3 on it? Don't know the odds of it working.
>>
>> http://docs.python.org/release/3.1.2/library/2to3.html#to3-reference
> Just tried, the patch produced is:
>
> [...]
> However it still doesn't work :
>
> -------------------
> # Running regressions in /home/yabo/boost_test...
> # Creating regression scripts at
> /home/yabo/boost_test/tools_regression_src...
> # Dowloading regression scripts from
> http://svn.boost.org/svn/boost/trunk/tools/regression/src...
> Traceback (most recent call last):
> File "run.py", line 52, in <module>
> urllib.FancyURLopener(proxy).retrieve(
> AttributeError: 'module' object has no attribute 'FancyURLopener'
> -------------------
Looks like that line needs to read
urllib.request.FancyURLopener(...
Looks like regression.py line 622 needs a similar change:
src = urllib.request.urlopen(...
These all need 2to3, too:
$ find ./tools_regression_src/ -name '*.py'
./tools_regression_src/collect_and_upload_logs.py
./tools_regression_src/process_jam_log.py
./tools_regression_src/regression.py
You might need pass '--incremental' or '--have-source' to run.py to
keep your patch from being blown away.