Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

lib-python/3/test/test_sys.py::unmodified

== PyPy 3.11.15 (451f61ebebba, Jun 25 2026, 01:33:15) [PyPy 7.3.24-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_8256æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3688129645
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_sys
test_exc_info_no_exception (test.test_sys.ActiveExceptionTests.test_exc_info_no_exception) ... ok
test_exc_info_with_exception_instance (test.test_sys.ActiveExceptionTests.test_exc_info_with_exception_instance) ... ok
test_exc_info_with_exception_type (test.test_sys.ActiveExceptionTests.test_exc_info_with_exception_type) ... ok
test_sys_exception_no_exception (test.test_sys.ActiveExceptionTests.test_sys_exception_no_exception) ... ok
test_sys_exception_with_exception_instance (test.test_sys.ActiveExceptionTests.test_sys_exception_with_exception_instance) ... ok
test_sys_exception_with_exception_type (test.test_sys.ActiveExceptionTests.test_sys_exception_with_exception_type) ... ok
test_custom_displayhook (test.test_sys.DisplayHookTest.test_custom_displayhook) ... ok
test_lost_displayhook (test.test_sys.DisplayHookTest.test_lost_displayhook) ... ok
test_original_displayhook (test.test_sys.DisplayHookTest.test_original_displayhook) ... ok
test_excepthook (test.test_sys.ExceptHookTest.test_excepthook) ... ok
test_excepthook_bytes_filename (test.test_sys.ExceptHookTest.test_excepthook_bytes_filename) ... ok
test_original_excepthook (test.test_sys.ExceptHookTest.test_original_excepthook) ... ok
test_asyncgen_hooks (test.test_sys.SizeofTest.test_asyncgen_hooks) ... skipped 'implementation detail specific to cpython'
test_changing_sys_stderr_and_removing_reference (test.test_sys.SizeofTest.test_changing_sys_stderr_and_removing_reference) ... skipped 'implementation detail specific to cpython'
test_default (test.test_sys.SizeofTest.test_default) ... skipped 'implementation detail specific to cpython'
test_errors (test.test_sys.SizeofTest.test_errors) ... skipped 'implementation detail specific to cpython'
test_gc_head_size (test.test_sys.SizeofTest.test_gc_head_size) ... skipped 'implementation detail specific to cpython'
test_objecttypes (test.test_sys.SizeofTest.test_objecttypes) ... skipped 'implementation detail specific to cpython'
test_pythontypes (test.test_sys.SizeofTest.test_pythontypes) ... skipped 'implementation detail specific to cpython'
test_slots (test.test_sys.SizeofTest.test_slots) ... skipped 'implementation detail specific to cpython'
test_43581 (test.test_sys.SysModuleTest.test_43581) ... ok
test__enablelegacywindowsfsencoding (test.test_sys.SysModuleTest.test__enablelegacywindowsfsencoding) ... skipped 'needs sys._enablelegacywindowsfsencoding()'
test_attributes (test.test_sys.SysModuleTest.test_attributes) ... ok
test_c_locale_surrogateescape (test.test_sys.SysModuleTest.test_c_locale_surrogateescape) ... FAIL
test_call_tracing (test.test_sys.SysModuleTest.test_call_tracing) ... ok
test_clear_type_cache (test.test_sys.SysModuleTest.test_clear_type_cache) ... skipped 'implementation detail specific to cpython'
test_current_exceptions (test.test_sys.SysModuleTest.test_current_exceptions) ... ok
test_current_frames (test.test_sys.SysModuleTest.test_current_frames) ... ok
test_current_frames_exceptions_deadlock (test.test_sys.SysModuleTest.test_current_frames_exceptions_deadlock)
Reproduce the bug raised in GH-106883 and GH-116969. ... skipped 'requires working os.fork()'
test_debugmallocstats (test.test_sys.SysModuleTest.test_debugmallocstats) ... skipped 'implementation detail specific to cpython'
test_dlopenflags (test.test_sys.SysModuleTest.test_dlopenflags) ... skipped 'test needs sys.setdlopenflags()'
test_emscripten_info (test.test_sys.SysModuleTest.test_emscripten_info) ... skipped 'only available on Emscripten'
test_executable (test.test_sys.SysModuleTest.test_executable) ... ok
test_exit (test.test_sys.SysModuleTest.test_exit) ... ok
test_getallocatedblocks (test.test_sys.SysModuleTest.test_getallocatedblocks) ... skipped 'sys.getallocatedblocks unavailable on this build'
test_getandroidapilevel (test.test_sys.SysModuleTest.test_getandroidapilevel) ... skipped 'need sys.getandroidapilevel()'
test_getdefaultencoding (test.test_sys.SysModuleTest.test_getdefaultencoding) ... ok
test_getfilesystemencoding (test.test_sys.SysModuleTest.test_getfilesystemencoding) ... ok
test_getframe (test.test_sys.SysModuleTest.test_getframe) ... ok
test_getrecursionlimit (test.test_sys.SysModuleTest.test_getrecursionlimit) ... ok
test_getwindowsversion (test.test_sys.SysModuleTest.test_getwindowsversion) ... ok
test_implementation (test.test_sys.SysModuleTest.test_implementation) ... ok
test_intern (test.test_sys.SysModuleTest.test_intern) ... ok
test_ioencoding (test.test_sys.SysModuleTest.test_ioencoding) ... ok
test_ioencoding_nonascii (test.test_sys.SysModuleTest.test_ioencoding_nonascii) ... ok
test_is_finalizing (test.test_sys.SysModuleTest.test_is_finalizing) ... skipped 'implementation detail specific to cpython'
test_issue20602 (test.test_sys.SysModuleTest.test_issue20602) ... skipped 'implementation detail specific to cpython'
test_module_names (test.test_sys.SysModuleTest.test_module_names) ... ok
test_no_duplicates_in_meta_path (test.test_sys.SysModuleTest.test_no_duplicates_in_meta_path) ... ok
test_orig_argv (test.test_sys.SysModuleTest.test_orig_argv) ... ok
test_posix_locale_surrogateescape (test.test_sys.SysModuleTest.test_posix_locale_surrogateescape) ... FAIL
test_recursionlimit_recovery (test.test_sys.SysModuleTest.test_recursionlimit_recovery) ... ok
test_refcount (test.test_sys.SysModuleTest.test_refcount) ... skipped 'implementation detail specific to cpython'
test_setrecursionlimit (test.test_sys.SysModuleTest.test_setrecursionlimit) ... ok
test_setrecursionlimit_to_depth (test.test_sys.SysModuleTest.test_setrecursionlimit_to_depth) ... skipped 'implementation detail specific to cpython'
test_stdlib_dir (test.test_sys.SysModuleTest.test_stdlib_dir) ... ok
test_switchinterval (test.test_sys.SysModuleTest.test_switchinterval) ... ok
test_sys_flags (test.test_sys.SysModuleTest.test_sys_flags) ... ok
test_sys_flags_no_instantiation (test.test_sys.SysModuleTest.test_sys_flags_no_instantiation) ... ok
test_sys_getwindowsversion_no_instantiation (test.test_sys.SysModuleTest.test_sys_getwindowsversion_no_instantiation) ... FAIL
test_sys_ignores_cleaning_up_user_data (test.test_sys.SysModuleTest.test_sys_ignores_cleaning_up_user_data) ... ok
test_sys_tracebacklimit (test.test_sys.SysModuleTest.test_sys_tracebacklimit) ... ok
test_sys_version_info_no_instantiation (test.test_sys.SysModuleTest.test_sys_version_info_no_instantiation) ... ok
test_thread_info (test.test_sys.SysModuleTest.test_thread_info) ... FAIL
test_custom_unraisablehook (test.test_sys.UnraisableHookTest.test_custom_unraisablehook) ... skipped 'implementation detail specific to cpython'
test_custom_unraisablehook_fail (test.test_sys.UnraisableHookTest.test_custom_unraisablehook_fail) ... skipped 'implementation detail specific to cpython'
test_original_unraisablehook (test.test_sys.UnraisableHookTest.test_original_unraisablehook) ... skipped 'implementation detail specific to cpython'
test_original_unraisablehook_err (test.test_sys.UnraisableHookTest.test_original_unraisablehook_err) ... skipped 'implementation detail specific to cpython'
test_original_unraisablehook_exception_qualname (test.test_sys.UnraisableHookTest.test_original_unraisablehook_exception_qualname) ... skipped 'implementation detail specific to cpython'
test_original_unraisablehook_wrong_type (test.test_sys.UnraisableHookTest.test_original_unraisablehook_wrong_type) ... skipped 'implementation detail specific to cpython'

======================================================================
FAIL: test_c_locale_surrogateescape (test.test_sys.SysModuleTest.test_c_locale_surrogateescape)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_sys.py", line 964, in test_c_locale_surrogateescape
    self.check_locale_surrogateescape('C')
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_sys.py", line 926, in check_locale_surrogateescape
    self.assertEqual(out,
         ^^^^^^^^^^^
AssertionError: 'stdin: strict\nstdout: strict\nstderr: backslashreplace\n' != 'stdin: surrogateescape\nstdout: surrogateescape\nstderr: backslashreplace\n'
- stdin: strict
- stdout: strict
+ stdin: surrogateescape
+ stdout: surrogateescape
  stderr: backslashreplace


======================================================================
FAIL: test_posix_locale_surrogateescape (test.test_sys.SysModuleTest.test_posix_locale_surrogateescape)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_sys.py", line 968, in test_posix_locale_surrogateescape
    self.check_locale_surrogateescape('POSIX')
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_sys.py", line 926, in check_locale_surrogateescape
    self.assertEqual(out,
         ^^^^^^^^^^^
AssertionError: 'stdin: strict\nstdout: strict\nstderr: backslashreplace\n' != 'stdin: surrogateescape\nstdout: surrogateescape\nstderr: backslashreplace\n'
- stdin: strict
- stdout: strict
+ stdin: surrogateescape
+ stdout: surrogateescape
  stderr: backslashreplace


======================================================================
FAIL: test_sys_getwindowsversion_no_instantiation (test.test_sys.SysModuleTest.test_sys_getwindowsversion_no_instantiation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_sys.py", line 793, in test_sys_getwindowsversion_no_instantiation
    self.assert_raise_on_new_sys_type(sys.getwindowsversion())
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_sys.py", line 779, in assert_raise_on_new_sys_type
    with self.assertRaises(TypeError):
AssertionError: TypeError not raised

======================================================================
FAIL: test_thread_info (test.test_sys.SysModuleTest.test_thread_info)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_sys.py", line 713, in test_thread_info
    self.assertIn(info.name, ('nt', 'pthread', 'pthread-stubs', 'solaris', None))
         ^^^^^^^^
AssertionError: 'win7' not found in ('nt', 'pthread', 'pthread-stubs', 'solaris', None)

----------------------------------------------------------------------
Ran 70 tests in 1.667s

FAILED (failures=4, skipped=26)
test_sys failed (4 failures)

== Tests result: FAILURE ==

1 test failed:
    test_sys

Total duration: 2.0 sec
Total tests: run=70 failures=4 skipped=26
Total test files: run=1/1 failed=1
Result: FAILURE
test test_sys failed
builder: pypy-c-jit-win-x86-64 build #2418+
test: lib-python/3/test/test_sys.py::unmodified