lib-python/3/test/test_c_locale_coercion.py::unmodified
== PyPy 3.12.13 (089c43735760, Jul 23 2026, 15:52:42) [PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)]
== Linux-6.12.90+deb13-amd64-i686-with-glibc2.28 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_828568æ
== CPU count: 9
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3178324146
0:00:00 load avg: 1.39 Run 1 test sequentially in a single process
0:00:00 load avg: 1.39 [1/1] test_c_locale_coercion
AVAILABLE_TARGETS = ['C.UTF-8', 'C.utf8']
EXPECTED_C_LOCALE_EQUIVALENTS = ['C', 'invalid.ascii', 'POSIX']
EXPECTED_C_LOCALE_STREAM_ENCODING = 'ascii'
EXPECTED_C_LOCALE_FS_ENCODING = 'ascii'
EXPECT_COERCION_IN_DEFAULT_LOCALE = True
_C_UTF8_LOCALES = ('C.UTF-8', 'C.utf8', 'UTF-8')
_check_nl_langinfo_CODESET = False
test_LC_ALL_set_to_C (test.test_c_locale_coercion.LocaleCoercionTests.test_LC_ALL_set_to_C) ... skipped 'implementation detail specific to cpython'
test_PYTHONCOERCECLOCALE_not_set (test.test_c_locale_coercion.LocaleCoercionTests.test_PYTHONCOERCECLOCALE_not_set) ... skipped 'implementation detail specific to cpython'
test_PYTHONCOERCECLOCALE_not_zero (test.test_c_locale_coercion.LocaleCoercionTests.test_PYTHONCOERCECLOCALE_not_zero) ... skipped 'implementation detail specific to cpython'
test_PYTHONCOERCECLOCALE_set_to_one (test.test_c_locale_coercion.LocaleCoercionTests.test_PYTHONCOERCECLOCALE_set_to_one) ... skipped 'implementation detail specific to cpython'
test_PYTHONCOERCECLOCALE_set_to_warn (test.test_c_locale_coercion.LocaleCoercionTests.test_PYTHONCOERCECLOCALE_set_to_warn) ... skipped 'implementation detail specific to cpython'
test_PYTHONCOERCECLOCALE_set_to_zero (test.test_c_locale_coercion.LocaleCoercionTests.test_PYTHONCOERCECLOCALE_set_to_zero) ... skipped 'implementation detail specific to cpython'
test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) ...
test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) (env_var='LANG', configured_locale='C.UTF-8') ... FAIL
test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) (env_var='LANG', configured_locale='C.utf8') ... FAIL
test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) (env_var='LC_CTYPE', configured_locale='C.UTF-8') ... FAIL
test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) (env_var='LC_CTYPE', configured_locale='C.utf8') ... FAIL
test_with_ioencoding (test.test_c_locale_coercion.LocaleConfigurationTests.test_with_ioencoding) ... ok
======================================================================
FAIL: test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) (env_var='LANG', configured_locale='C.UTF-8')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_c_locale_coercion.py", line 280, in test_external_target_locale_configuration
self._check_child_encoding_details(var_dict,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_c_locale_coercion.py", line 236, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
^^^^^^^^^^^
AssertionError: {'fse[29 chars]o': 'UTF-8:strict', 'stdout_info': 'UTF-8:stri[89 chars]: ''} != {'fse[29 chars]o': 'utf-8:surrogateescape', 'stdout_info': 'u[107 chars]: ''}
{'fsencoding': 'utf-8',
'lang': 'C.UTF-8',
'lc_all': '',
'lc_ctype': '',
- 'stderr_info': 'UTF-8:backslashreplace',
? ^^^
+ 'stderr_info': 'utf-8:backslashreplace',
? ^^^
- 'stdin_info': 'UTF-8:strict',
- 'stdout_info': 'UTF-8:strict'}
+ 'stdin_info': 'utf-8:surrogateescape',
+ 'stdout_info': 'utf-8:surrogateescape'}
======================================================================
FAIL: test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) (env_var='LANG', configured_locale='C.utf8')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_c_locale_coercion.py", line 280, in test_external_target_locale_configuration
self._check_child_encoding_details(var_dict,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_c_locale_coercion.py", line 236, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
^^^^^^^^^^^
AssertionError: {'fse[29 chars]o': 'UTF-8:strict', 'stdout_info': 'UTF-8:stri[88 chars]: ''} != {'fse[29 chars]o': 'utf-8:surrogateescape', 'stdout_info': 'u[106 chars]: ''}
{'fsencoding': 'utf-8',
'lang': 'C.utf8',
'lc_all': '',
'lc_ctype': '',
- 'stderr_info': 'UTF-8:backslashreplace',
? ^^^
+ 'stderr_info': 'utf-8:backslashreplace',
? ^^^
- 'stdin_info': 'UTF-8:strict',
- 'stdout_info': 'UTF-8:strict'}
+ 'stdin_info': 'utf-8:surrogateescape',
+ 'stdout_info': 'utf-8:surrogateescape'}
======================================================================
FAIL: test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) (env_var='LC_CTYPE', configured_locale='C.UTF-8')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_c_locale_coercion.py", line 280, in test_external_target_locale_configuration
self._check_child_encoding_details(var_dict,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_c_locale_coercion.py", line 236, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
^^^^^^^^^^^
AssertionError: {'fse[29 chars]o': 'UTF-8:strict', 'stdout_info': 'UTF-8:stri[89 chars]: ''} != {'fse[29 chars]o': 'utf-8:surrogateescape', 'stdout_info': 'u[107 chars]: ''}
{'fsencoding': 'utf-8',
'lang': '',
'lc_all': '',
'lc_ctype': 'C.UTF-8',
- 'stderr_info': 'UTF-8:backslashreplace',
? ^^^
+ 'stderr_info': 'utf-8:backslashreplace',
? ^^^
- 'stdin_info': 'UTF-8:strict',
- 'stdout_info': 'UTF-8:strict'}
+ 'stdin_info': 'utf-8:surrogateescape',
+ 'stdout_info': 'utf-8:surrogateescape'}
======================================================================
FAIL: test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests.test_external_target_locale_configuration) (env_var='LC_CTYPE', configured_locale='C.utf8')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_c_locale_coercion.py", line 280, in test_external_target_locale_configuration
self._check_child_encoding_details(var_dict,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_c_locale_coercion.py", line 236, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
^^^^^^^^^^^
AssertionError: {'fse[29 chars]o': 'UTF-8:strict', 'stdout_info': 'UTF-8:stri[88 chars]: ''} != {'fse[29 chars]o': 'utf-8:surrogateescape', 'stdout_info': 'u[106 chars]: ''}
{'fsencoding': 'utf-8',
'lang': '',
'lc_all': '',
'lc_ctype': 'C.utf8',
- 'stderr_info': 'UTF-8:backslashreplace',
? ^^^
+ 'stderr_info': 'utf-8:backslashreplace',
? ^^^
- 'stdin_info': 'UTF-8:strict',
- 'stdout_info': 'UTF-8:strict'}
+ 'stdin_info': 'utf-8:surrogateescape',
+ 'stdout_info': 'utf-8:surrogateescape'}
----------------------------------------------------------------------
Ran 8 tests in 0.346s
FAILED (failures=4, skipped=6)
0:00:00 load avg: 1.39 [1/1/1] test_c_locale_coercion failed (4 failures)
== Tests result: FAILURE ==
1 test failed:
test_c_locale_coercion
Total duration: 430 ms
Total tests: run=8 failures=4 skipped=6
Total test files: run=1/1 failed=1
Result: FAILURE
test test_c_locale_coercion failed
builder: pypy-c-jit-linux-x86-32 build #8403+
test: lib-python/3/test/test_c_locale_coercion.py::unmodified