Simultaneous support for Python 2 and Python 3#46
Simultaneous support for Python 2 and Python 3#46teeks99 wants to merge 21 commits intoboostorg:developfrom
Conversation
Were you able to make any more progress with this? Are you running your regressions under python 3? I see in collect_and_upload_logs.py row 182 they're dealing with it as a text file. Opening that file as binary, then Similarly in process_xml_file() row 103. Neither will get as far as the |
|
I haven't looked at this in a very long time, but I believe that issue is still there. I'm still using python 2 for the regression runs. |
I've made the changes to follow the program through in both version of python. This Fixes #43.
Please don't merge yet, there are two known defects.
Different results
The windows version shows slightly different results on windows. Looking at the develop results the
teeks99-test-py23-p2-wandteeks99-test-py23-p3-wthey are the same except for thebuildresults which are missing for the python 3 version.Different output
On linux (running python 3.5), I get an exception running through the log for regex. Running with Python 3 the file
results/boost/bin.v2/libs/regex/example/icu_example.test/gcc-8~c++2a/debug/threading-multi/visibility-hidden/test_log.xmlcontains:whereas the python 2 version contains:
The difference on the
£198.12vs.<C2><A3>198.12causes aUnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1803: ordinal not in range(128). Any ideas what could be causing the differences in the xml files? Something about the environment that runs the tests?