lib-python/3/test/test_sys.py::unmodified
== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 03:38:33) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-5.4.0-182-generic-i686-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /build_dir/tmp/pytest/test_python_worker_2022814æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3580322686
0:00:00 load avg: 4.96 Run 1 test sequentially in a single process
0:00:00 load avg: 4.96 [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_gh130163 (test.test_sys.DisplayHookTest.test_gh130163) ... 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) ... FAIL
test_c_locale_surrogateescape (test.test_sys.SysModuleTest.test_c_locale_surrogateescape) ... ok
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) ... FAIL
test_current_frames (test.test_sys.SysModuleTest.test_current_frames) ... ok
test_debugmallocstats (test.test_sys.SysModuleTest.test_debugmallocstats) ... skipped 'implementation detail specific to cpython'
test_dlopenflags (test.test_sys.SysModuleTest.test_dlopenflags) ... ok
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_getframemodulename (test.test_sys.SysModuleTest.test_getframemodulename) ... ok
test_getrecursionlimit (test.test_sys.SysModuleTest.test_getrecursionlimit) ... ok
test_getwindowsversion (test.test_sys.SysModuleTest.test_getwindowsversion) ... skipped "object <module 'sys' (built-in)> has no attribute 'getwindowsversion'"
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) ... skipped 'requires FS encoding to match locale'
test_is_finalizing (test.test_sys.SysModuleTest.test_is_finalizing) ... FAIL
test_issue20602 (test.test_sys.SysModuleTest.test_issue20602) ... ERROR
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) ... ok
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_subinterp_intern_dynamically_allocated (test.test_sys.SysModuleTest.test_subinterp_intern_dynamically_allocated) ... skipped 'implementation detail specific to cpython'
test_subinterp_intern_singleton (test.test_sys.SysModuleTest.test_subinterp_intern_singleton) ... skipped 'implementation detail specific to cpython'
test_subinterp_intern_statically_allocated (test.test_sys.SysModuleTest.test_subinterp_intern_statically_allocated) ... skipped 'implementation detail specific to cpython'
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) ... skipped "object <module 'sys' (built-in)> has no attribute 'getwindowsversion'"
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) ... ok
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'
======================================================================
ERROR: test_issue20602 (test.test_sys.SysModuleTest.test_issue20602)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_sys.py", line 1122, in test_issue20602
self.assertIn(b'sys.flags', out[0])
~~~^^^
IndexError: list index out of range
======================================================================
FAIL: test_attributes (test.test_sys.SysModuleTest.test_attributes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_sys.py", line 603, in test_attributes
self.assertTrue(sys.int_info.bits_per_digit % 5 == 0)
^^^^^^^^^^
AssertionError: False is not true
======================================================================
FAIL: test_current_exceptions (test.test_sys.SysModuleTest.test_current_exceptions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/support/threading_helper.py", line 66, in decorator
return func(*args)
^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_sys.py", line 562, in test_current_exceptions
self.assertEqual(None, d.pop(main_id))
^^^^^^^^^^^
AssertionError: None != (None, None, None)
======================================================================
FAIL: test_is_finalizing (test.test_sys.SysModuleTest.test_is_finalizing)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_sys.py", line 1108, in test_is_finalizing
self.assertEqual(stdout.rstrip(), b'True')
^^^^^^^^^^^
AssertionError: b'' != b'True'
----------------------------------------------------------------------
Ran 74 tests in 2.363s
FAILED (failures=3, errors=1, skipped=28)
0:00:02 load avg: 4.97 [1/1/1] test_sys failed (1 error, 3 failures)
== Tests result: FAILURE ==
1 test failed:
test_sys
Total duration: 2.6 sec
Total tests: run=74 failures=3 skipped=28
Total test files: run=1/1 failed=1
Result: FAILURE
test test_sys failed
builder: pypy-c-jit-linux-x86-32 build #8377+
test: lib-python/3/test/test_sys.py::unmodified