Scons 4.2.0 and Python 3.10: tes t SCons/ActionTests.py failed

Sergey Torokhov via Scons-users <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
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
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.