lib-python/3/test/test_c_locale_coercion.py::unmodified
== PyPy 3.11.15 (aafccb1b0b70, Jul 10 2026, 01:31:37) [PyPy 8.0.0-alpha0 with GCC Apple LLVM 16.0.0 (clang-1600.0.26.6)]
== macOS-15.7.7-arm64-arm-64bit little-endian
== Python build: release with_assert
== cwd: /private/tmp/buildbot-arm64/pytest/test_python_worker_56010æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 552370131
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 6.05 Run 1 test sequentially
0:00:00 load avg: 6.05 [1/1] test_c_locale_coercion
AVAILABLE_TARGETS = ['C.UTF-8', 'UTF-8']
EXPECTED_C_LOCALE_EQUIVALENTS = ['C', 'invalid.ascii']
EXPECTED_C_LOCALE_STREAM_ENCODING = 'ascii'
EXPECTED_C_LOCALE_FS_ENCODING = 'utf-8'
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='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='UTF-8') ... 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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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='LC_CTYPE', configured_locale='C.UTF-8')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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='UTF-8')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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 "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/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[87 chars]: ''} != {'fse[29 chars]o': 'utf-8:surrogateescape', 'stdout_info': 'u[105 chars]: ''}
{'fsencoding': 'utf-8',
'lang': '',
'lc_all': '',
'lc_ctype': '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'}
----------------------------------------------------------------------
Ran 8 tests in 0.262s
FAILED (failures=3, skipped=6)
test_c_locale_coercion failed (3 failures)
== Tests result: FAILURE ==
1 test failed:
test_c_locale_coercion
Total duration: 336 ms
Total tests: run=8 failures=3 skipped=6
Total test files: run=1/1 failed=1
Result: FAILURE
test test_c_locale_coercion failed
builder: pypy-c-jit-macos-arm64 build #1308+
test: lib-python/3/test/test_c_locale_coercion.py::unmodified