[Scons-users] Scons 4.2.0 and Python 3.10: test SCons/ActionTests.py failed

Sergey Torokhov torokhov_s_a at mail.ru
Fri Dec 17 04:23:24 EST 2021


I downgrade Python from 3.10.1 to 3.10 and this test is OK.

Are there many other places in Scons where it could affect?


>Четверг, 16 декабря 2021, 21:56 +03:00 от Bill Deegan <bill at baddogconsulting.com>:
>
>Interesting.
>Wonder if 3.10.1 had any changes to the co_code parts of python objects..
>
>I'll try to take a look at this today/tomorrow..
>
>
>On Thu, Dec 16, 2021 at 3:58 AM Sergey Torokhov via Scons-users < scons-users at scons.org > wrote:
>>While running Scons tests with python 3.10.1 the `SCons/ActionTests.py` failed for Python 3.10 with error:
>>```
>>FAIL: test_function_contents (__main__.ObjectContentsTestCase)
>>Test that Action._function_contents works
>>----------------------------------------------------------------------
>>Traceback (most recent call last):
>>  File "/var/tmp/portage/dev-util/scons-4.2.0-r2/work/scons-4.2.0/SCons/ActionTests.py", line 2258, in test_function_contents
>>    assert c == expected[sys.version_info[:2]], "Got\n" + repr(c) + "\nExpected \n" + "\n" + repr(
>>AssertionError: Got
>>bytearray(b'3, 3, 0, 0,(),(),(|\x00S\x00),(),()')
>>Expected 
>> 
>>bytearray(b'3, 3, 0, 0,(N.),(),(|\x00S\x00),(),()')
>>```
>> 
>>Is it realy expected value for Python3.10 as mentioned in  https://github.com/SCons/scons/blob/9e1168ab8f500ee8602a1098050d38c3ee1e3260/SCons/ActionTests.py#L2254 ?
>> 
>>For Python 3.9 the expected value is `bytearray(b'3, 3, 0, 0,(),(),(|\x00S\x00),(),()')`.
>>Should for Python 3.10 expected the same value instead of current expected value?
>> 
>>* Version of SCons : 4.2.0
>>* Version of Python : 3.10.1 
>>* How you installed SCons : Gentoo package
>>* What Platform are you on? (Linux/Windows and which version) : Gentoo Linux
>> 
>> 
>>  _______________________________________________
>>Scons-users mailing list
>>Scons-users at scons.org
>>https://pairlist4.pair.net/mailman/listinfo/scons-users




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20211217/eb4d8415/attachment.htm>


More information about the Scons-users mailing list