system/python3: test failure in 3.10.0: test_c_locale_coercion failed (21 failures)
Found on x86_64. Only one failure while trying to bump, and maybe it's trivial.
0:00:09 load avg: 12.66 [358/389/1] test_c_locale_coercion failed (21 failures)
test test_c_locale_coercion failed -- multiple errors occurred; run in verbose mode for details
...
== Tests result: FAILURE ==
359 tests OK.
1 test failed:
test_c_locale_coercion
...
======================================================================
FAIL: test_PYTHONCOERCECLOCALE_not_set (test.test_c_locale_coercion.LocaleCoercionTests) (default_locale=True, PYTHONCOERCECLOCALE=None)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/system/python3/src/Python-3.10.0/Lib/test/test_c_locale_coercion.py", line 340, in _check_c_locale_coercion
self._check_child_encoding_details(base_var_dict,
File "/root/packages/system/python3/src/Python-3.10.0/Lib/test/test_c_locale_coercion.py", line 230, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
AssertionError: {'fse[124 chars]slashreplace', 'lang': '', 'lc_ctype': '', 'lc_all': ''} != {'fse[124 chars]slashreplace', 'lang': '', 'lc_ctype': 'C.UTF-8', 'lc_all': ''}
{'fsencoding': 'utf-8',
'lang': '',
'lc_all': '',
- 'lc_ctype': '',
+ 'lc_ctype': 'C.UTF-8',
? +++++++
'stderr_info': 'utf-8:backslashreplace',
'stdin_info': 'utf-8:surrogateescape',
'stdout_info': 'utf-8:surrogateescape'}
...
To reproduce after building:
$ pwd
/root/packages/system/python3/src/Python-3.10.0
$ LD_LIBRARY_PATH=. ./python ./Lib/test/test_c_locale_coercion.py
Output of that command: python-locales.txt