lib-python/3/test/test_utf8_mode.py::unmodified
== PyPy 3.11.15 (aafccb1b0b70, Jul 10 2026, 01:34:05) [PyPy 8.0.0-alpha0 with MSC v.1941 64 bit (AMD64)]
== Windows-10-10.0.19045-SP0 little-endian
== Python build: release with_assert
== cwd: D:\SystemTemp\pytest\test_python_worker_7448æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network
Using random seed: 619417611
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_utf8_mode
test_cmd_line (test.test_utf8_mode.UTF8ModeTests.test_cmd_line) ... skipped 'test specific to Unix'
test_device_encoding (test.test_utf8_mode.UTF8ModeTests.test_device_encoding) ... skipped "os.device_encoding() doesn't implement the UTF-8 Mode on Windows"
test_env_var (test.test_utf8_mode.UTF8ModeTests.test_env_var) ... FAIL
test_filesystemencoding (test.test_utf8_mode.UTF8ModeTests.test_filesystemencoding) ... FAIL
test_io (test.test_utf8_mode.UTF8ModeTests.test_io) ... ok
test_io_encoding (test.test_utf8_mode.UTF8ModeTests.test_io_encoding) ... ok
test_locale_getpreferredencoding (test.test_utf8_mode.UTF8ModeTests.test_locale_getpreferredencoding) ... ok
test_optim_level (test.test_utf8_mode.UTF8ModeTests.test_optim_level) ... ok
test_posix_locale (test.test_utf8_mode.UTF8ModeTests.test_posix_locale) ... skipped 'Windows has no POSIX locale'
test_pyio_encoding (test.test_utf8_mode.UTF8ModeTests.test_pyio_encoding) ... ok
test_stdio (test.test_utf8_mode.UTF8ModeTests.test_stdio) ... ok
test_xoption (test.test_utf8_mode.UTF8ModeTests.test_xoption) ... FAIL
======================================================================
FAIL: test_env_var (test.test_utf8_mode.UTF8ModeTests.test_env_var)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_utf8_mode.py", line 86, in test_env_var
self.assertEqual(out, '0')
^^^^^^^^^^^
AssertionError: '1' != '0'
- 1
+ 0
======================================================================
FAIL: test_filesystemencoding (test.test_utf8_mode.UTF8ModeTests.test_filesystemencoding)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_utf8_mode.py", line 118, in test_filesystemencoding
out = self.get_output('-X', 'utf8', '-c', code,
^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_utf8_mode.py", line 35, in get_output
out = assert_python_ok(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\support\script_helper.py", line 166, in assert_python_ok
return _assert_python(True, *args, **env_vars)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\support\script_helper.py", line 151, in _assert_python
res.fail(cmd_line)
^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\support\script_helper.py", line 76, in fail
raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe', '-X', 'faulthandler', '-X', 'utf8', '-c', '\nimport sys\nprint("{}/{}".format(sys.getfilesystemencoding(),\n sys.getfilesystemencodeerrors()))\n']
stdout:
---
---
stderr:
---
Fatal Python error: invalid PYTHONUTF8 environment variable value 'strict'
---
======================================================================
FAIL: test_xoption (test.test_utf8_mode.UTF8ModeTests.test_xoption)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_utf8_mode.py", line 66, in test_xoption
self.assertEqual(out, '0')
^^^^^^^^^^^
AssertionError: '1' != '0'
- 1
+ 0
----------------------------------------------------------------------
Ran 12 tests in 1.303s
FAILED (failures=3, skipped=3)
test_utf8_mode failed (3 failures)
== Tests result: FAILURE ==
1 test failed:
test_utf8_mode
Total duration: 1.6 sec
Total tests: run=12 failures=3 skipped=3
Total test files: run=1/1 failed=1
Result: FAILURE
test test_utf8_mode failed
builder: pypy-c-jit-win-x86-64 build #2434+
test: lib-python/3/test/test_utf8_mode.py::unmodified