This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hroncok
Recipients hrnciar, hroncok
Date 2021-03-02.14:40:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614696034.15.0.923342699637.issue43372@roundup.psfhosted.org>
In-reply-to
Content
The following test failure happens on Python 3.10.0a6+ when we make regen-frozen with the same Python version we test: ====================================================================== FAIL: test_frozentable (ctypes.test.test_values.PythonValuesTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/churchyard/Dokumenty/RedHat/cpython/Lib/ctypes/test/test_values.py", line 87, in test_frozentable self.assertEqual(items, expected, "PyImport_FrozenModules example " AssertionError: Lists differ: [('__hello__', 129), ('__phello__', -129), ('__phello__.spam', 129)] != [('__hello__', 125), ('__phello__', -125), ('__phello__.spam', 125)] First differing element 0: ('__hello__', 129) ('__hello__', 125) - [('__hello__', 129), ('__phello__', -129), ('__phello__.spam', 129)] ? ^ ^ ^ + [('__hello__', 125), ('__phello__', -125), ('__phello__.spam', 125)] ? ^ ^ ^ : PyImport_FrozenModules example in Doc/library/ctypes.rst may be out of date ---------------------------------------------------------------------- Ran 494 tests in 0.466s FAILED (failures=1, skipped=87) Reproducer: 1. Build Python from source: $ ./configure && make -j... 2. Run ctypes tests: $ ./python -m ctypes.test 3. Regenerate frozen: $ PYTHON_FOR_REGEN=./python make regen-frozen 4. Build Python from source again: $ ./configure && make -j... 5. Run ctypes tests: $ ./python -m ctypes.test Actual result: Tests in (2) pass, tests in (5) fail. The difference after (3) is: diff --git a/Python/frozen_hello.h b/Python/frozen_hello.h index 9c566cc81e..d58b726aa8 100644 --- a/Python/frozen_hello.h +++ b/Python/frozen_hello.h @@ -9,5 +9,5 @@ static unsigned char M___hello__[] = { 100,218,5,112,114,105,110,116,169,0,114,2,0, 0,0,114,2,0,0,0,218,4,110,111,110,101, 218,8,60,109,111,100,117,108,101,62,1,0,0, - 0,115,2,0,0,0,4,1, + 0,115,6,0,0,0,4,0,12,1,255,128, }; Expected results: Tests pass, no diff.
History
Date User Action Args
2021-03-02 14:40:34hroncoksetrecipients: + hroncok, hrnciar
2021-03-02 14:40:34hroncoksetmessageid: <1614696034.15.0.923342699637.issue43372@roundup.psfhosted.org>
2021-03-02 14:40:34hroncoklinkissue43372 messages
2021-03-02 14:40:33hroncokcreate