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

Sergey Torokhov torokhov_s_a at mail.ru
Thu Dec 16 06:58:03 EST 2021


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
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20211216/ad0f7001/attachment.htm>


More information about the Scons-users mailing list