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

lib-python/3/test/test_exceptions.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_8800æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network

Using random seed: 2244854525
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_exceptions
test_attribute_error_inside_nested_getattr (test.test_exceptions.AttributeErrorTests.test_attribute_error_inside_nested_getattr) ... ok
test_attribute_error_with_bad_name (test.test_exceptions.AttributeErrorTests.test_attribute_error_with_bad_name) ... ok
test_attribute_error_with_failing_dict (test.test_exceptions.AttributeErrorTests.test_attribute_error_with_failing_dict) ... ok
test_attributes (test.test_exceptions.AttributeErrorTests.test_attributes) ... ok
test_getattr_error_bad_suggestions_do_not_trigger_for_small_names (test.test_exceptions.AttributeErrorTests.test_getattr_error_bad_suggestions_do_not_trigger_for_small_names) ... ok
test_getattr_has_name_and_obj (test.test_exceptions.AttributeErrorTests.test_getattr_has_name_and_obj) ... ok
test_getattr_has_name_and_obj_for_method (test.test_exceptions.AttributeErrorTests.test_getattr_has_name_and_obj_for_method) ... ok
test_getattr_suggestions (test.test_exceptions.AttributeErrorTests.test_getattr_suggestions) ... ok
test_getattr_suggestions_do_not_trigger_for_big_dicts (test.test_exceptions.AttributeErrorTests.test_getattr_suggestions_do_not_trigger_for_big_dicts) ... ok
test_getattr_suggestions_do_not_trigger_for_long_attributes (test.test_exceptions.AttributeErrorTests.test_getattr_suggestions_do_not_trigger_for_long_attributes) ... ok
test_getattr_suggestions_for_same_name (test.test_exceptions.AttributeErrorTests.test_getattr_suggestions_for_same_name) ... ok
test_getattr_suggestions_invalid_args (test.test_exceptions.AttributeErrorTests.test_getattr_suggestions_invalid_args) ... ok
test_getattr_suggestions_no_args (test.test_exceptions.AttributeErrorTests.test_getattr_suggestions_no_args) ... ok
testAttributes (test.test_exceptions.ExceptionTests.testAttributes) ... ok
testChainingAttrs (test.test_exceptions.ExceptionTests.testChainingAttrs) ... ok
testChainingDescriptors (test.test_exceptions.ExceptionTests.testChainingDescriptors) ... ok
testExceptionCleanupState (test.test_exceptions.ExceptionTests.testExceptionCleanupState) ... ok
testInfiniteRecursion (test.test_exceptions.ExceptionTests.testInfiniteRecursion) ... ok
testInvalidAttrs (test.test_exceptions.ExceptionTests.testInvalidAttrs) ... ok
testInvalidTraceback (test.test_exceptions.ExceptionTests.testInvalidTraceback) ... ok
testKeywordArgs (test.test_exceptions.ExceptionTests.testKeywordArgs) ... ok
testMemoryErrorBigSource (test.test_exceptions.ExceptionTests.testMemoryErrorBigSource) ... skipped "resource 'cpu' is not enabled"
testNoneClearsTracebackAttr (test.test_exceptions.ExceptionTests.testNoneClearsTracebackAttr) ... ok
testRaising (test.test_exceptions.ExceptionTests.testRaising) ... ok
testSettingException (test.test_exceptions.ExceptionTests.testSettingException) ... skipped 'implementation detail specific to cpython'
testSyntaxErrorMessage (test.test_exceptions.ExceptionTests.testSyntaxErrorMessage) ... ok
testSyntaxErrorMissingParens (test.test_exceptions.ExceptionTests.testSyntaxErrorMissingParens) ... ok
testSyntaxErrorOffset (test.test_exceptions.ExceptionTests.testSyntaxErrorOffset) ... ok
testWithTraceback (test.test_exceptions.ExceptionTests.testWithTraceback) ... ok
test_3114 (test.test_exceptions.ExceptionTests.test_3114) ... ok
test_MemoryError (test.test_exceptions.ExceptionTests.test_MemoryError) ... skipped 'implementation detail specific to cpython'
test_WindowsError (test.test_exceptions.ExceptionTests.test_WindowsError) ... ok
test_assert_shadowing (test.test_exceptions.ExceptionTests.test_assert_shadowing) ... ok
test_badisinstance (test.test_exceptions.ExceptionTests.test_badisinstance) ... ok
test_context_of_exception_in_else_and_finally (test.test_exceptions.ExceptionTests.test_context_of_exception_in_else_and_finally) ... ok
test_context_of_exception_in_except_and_finally (test.test_exceptions.ExceptionTests.test_context_of_exception_in_except_and_finally) ... ok
test_context_of_exception_in_try_and_finally (test.test_exceptions.ExceptionTests.test_context_of_exception_in_try_and_finally) ... ok
test_errno_ENOTDIR (test.test_exceptions.ExceptionTests.test_errno_ENOTDIR) ... ok
test_error_offset_continuation_characters (test.test_exceptions.ExceptionTests.test_error_offset_continuation_characters) ... ok
test_exception_cleanup_names (test.test_exceptions.ExceptionTests.test_exception_cleanup_names) ... ok
test_exception_cleanup_names2 (test.test_exceptions.ExceptionTests.test_exception_cleanup_names2) ... ok
test_exception_target_in_nested_scope (test.test_exceptions.ExceptionTests.test_exception_target_in_nested_scope) ... ok
test_exception_with_doc (test.test_exceptions.ExceptionTests.test_exception_with_doc) ... skipped 'implementation detail specific to cpython'
test_generator_close_cleanup_exc_state (test.test_exceptions.ExceptionTests.test_generator_close_cleanup_exc_state) ... ok
test_generator_del_cleanup_exc_state (test.test_exceptions.ExceptionTests.test_generator_del_cleanup_exc_state) ... ok
test_generator_doesnt_retain_old_exc (test.test_exceptions.ExceptionTests.test_generator_doesnt_retain_old_exc) ... ok
test_generator_doesnt_retain_old_exc2 (test.test_exceptions.ExceptionTests.test_generator_doesnt_retain_old_exc2) ... ok
test_generator_finalizing_and_exc_info (test.test_exceptions.ExceptionTests.test_generator_finalizing_and_exc_info) ... ok
test_generator_leaking (test.test_exceptions.ExceptionTests.test_generator_leaking) ... ok
test_generator_leaking2 (test.test_exceptions.ExceptionTests.test_generator_leaking2) ... ok
test_generator_leaking3 (test.test_exceptions.ExceptionTests.test_generator_leaking3) ... ok
test_generator_leaking4 (test.test_exceptions.ExceptionTests.test_generator_leaking4) ... ok
test_generator_next_cleanup_exc_state (test.test_exceptions.ExceptionTests.test_generator_next_cleanup_exc_state) ... ok
test_generator_send_cleanup_exc_state (test.test_exceptions.ExceptionTests.test_generator_send_cleanup_exc_state) ... ok
test_generator_throw_cleanup_exc_state (test.test_exceptions.ExceptionTests.test_generator_throw_cleanup_exc_state) ... ok
test_memory_error_cleanup (test.test_exceptions.ExceptionTests.test_memory_error_cleanup) ... skipped 'implementation detail specific to cpython'
test_memory_error_in_PyErr_PrintEx (test.test_exceptions.ExceptionTests.test_memory_error_in_PyErr_PrintEx) ... skipped 'implementation detail specific to cpython'
test_memory_error_subclasses (test.test_exceptions.ExceptionTests.test_memory_error_subclasses) ... ok
test_no_hang_on_context_chain_cycle1 (test.test_exceptions.ExceptionTests.test_no_hang_on_context_chain_cycle1) ... ok
test_no_hang_on_context_chain_cycle2 (test.test_exceptions.ExceptionTests.test_no_hang_on_context_chain_cycle2) ... skipped 'See issue 44895'
test_no_hang_on_context_chain_cycle3 (test.test_exceptions.ExceptionTests.test_no_hang_on_context_chain_cycle3) ... ok
test_notes (test.test_exceptions.ExceptionTests.test_notes) ... ok
test_raise_does_not_create_context_chain_cycle (test.test_exceptions.ExceptionTests.test_raise_does_not_create_context_chain_cycle) ... ok
test_raise_in_generator (test.test_exceptions.ExceptionTests.test_raise_in_generator) ... ok
test_recursion_error_cleanup (test.test_exceptions.ExceptionTests.test_recursion_error_cleanup) ... ok
test_recursion_in_except_handler (test.test_exceptions.ExceptionTests.test_recursion_in_except_handler) ... skipped 'implementation detail specific to cpython'
test_recursion_normalizing_exception (test.test_exceptions.ExceptionTests.test_recursion_normalizing_exception) ... skipped 'implementation detail specific to cpython'
test_recursion_normalizing_infinite_exception (test.test_exceptions.ExceptionTests.test_recursion_normalizing_infinite_exception) ... skipped 'implementation detail specific to cpython'
test_recursion_normalizing_with_no_memory (test.test_exceptions.ExceptionTests.test_recursion_normalizing_with_no_memory) ... skipped 'implementation detail specific to cpython'
test_str (test.test_exceptions.ExceptionTests.test_str) ... ok
test_trashcan_recursion (test.test_exceptions.ExceptionTests.test_trashcan_recursion) ... skipped 'implementation detail specific to cpython'
test_unhandled (test.test_exceptions.ExceptionTests.test_unhandled) ... ok
test_unicode_change_attributes (test.test_exceptions.ExceptionTests.test_unicode_change_attributes) ... ok
test_unicode_errors_no_object (test.test_exceptions.ExceptionTests.test_unicode_errors_no_object) ... ok
test_unraisable (test.test_exceptions.ExceptionTests.test_unraisable) ... ok
test_windows_message (test.test_exceptions.ExceptionTests.test_windows_message)
Should fill in unknown error code in Windows error message ... ERROR
test_yield_in_nested_try_excepts (test.test_exceptions.ExceptionTests.test_yield_in_nested_try_excepts) ... ok
test_attributes (test.test_exceptions.ImportErrorTests.test_attributes) ... ok
test_copy_pickle (test.test_exceptions.ImportErrorTests.test_copy_pickle) ... ok
test_non_str_argument (test.test_exceptions.ImportErrorTests.test_non_str_argument) ... ok
test_reset_attributes (test.test_exceptions.ImportErrorTests.test_reset_attributes) ... ok
test_issue45826 (test.test_exceptions.NameErrorTests.test_issue45826) ... ok
test_issue45826_focused (test.test_exceptions.NameErrorTests.test_issue45826_focused) ... ok
test_name_error_bad_suggestions_do_not_trigger_for_small_names (test.test_exceptions.NameErrorTests.test_name_error_bad_suggestions_do_not_trigger_for_small_names) ... ok
test_name_error_has_name (test.test_exceptions.NameErrorTests.test_name_error_has_name) ... ok
test_name_error_suggestions (test.test_exceptions.NameErrorTests.test_name_error_suggestions) ... ok
test_name_error_suggestions_do_not_trigger_for_long_names (test.test_exceptions.NameErrorTests.test_name_error_suggestions_do_not_trigger_for_long_names) ... ok
test_name_error_suggestions_do_not_trigger_for_too_many_locals (test.test_exceptions.NameErrorTests.test_name_error_suggestions_do_not_trigger_for_too_many_locals) ... ok
test_name_error_suggestions_from_builtins (test.test_exceptions.NameErrorTests.test_name_error_suggestions_from_builtins) ... ok
test_name_error_suggestions_from_globals (test.test_exceptions.NameErrorTests.test_name_error_suggestions_from_globals) ... ok
test_name_error_with_custom_exceptions (test.test_exceptions.NameErrorTests.test_name_error_with_custom_exceptions) ... ok
test_unbound_local_error_doesn_not_match (test.test_exceptions.NameErrorTests.test_unbound_local_error_doesn_not_match) ... ok
test_lineno_after_other_except (test.test_exceptions.PEP626Tests.test_lineno_after_other_except) ... ok
test_lineno_after_raise_in_except (test.test_exceptions.PEP626Tests.test_lineno_after_raise_in_except) ... ok
test_lineno_after_raise_in_with_exit (test.test_exceptions.PEP626Tests.test_lineno_after_raise_in_with_exit) ... ok
test_lineno_after_raise_simple (test.test_exceptions.PEP626Tests.test_lineno_after_raise_simple) ... ok
test_lineno_after_with (test.test_exceptions.PEP626Tests.test_lineno_after_with) ... ok
test_lineno_in_finally_except (test.test_exceptions.PEP626Tests.test_lineno_in_finally_except) ... ok
test_lineno_in_finally_normal (test.test_exceptions.PEP626Tests.test_lineno_in_finally_normal) ... ok
test_lineno_in_named_except (test.test_exceptions.PEP626Tests.test_lineno_in_named_except) ... ok
test_lineno_in_try (test.test_exceptions.PEP626Tests.test_lineno_in_try) ... ok
test_missing_lineno_shows_as_none (test.test_exceptions.PEP626Tests.test_missing_lineno_shows_as_none) ... ok
test_attributes_new_constructor (test.test_exceptions.SyntaxErrorTests.test_attributes_new_constructor) ... ok
test_attributes_old_constructor (test.test_exceptions.SyntaxErrorTests.test_attributes_old_constructor) ... ok
test_encodings (test.test_exceptions.SyntaxErrorTests.test_encodings) ... ok
test_incorrect_constructor (test.test_exceptions.SyntaxErrorTests.test_incorrect_constructor) ... ok
test_non_utf8 (test.test_exceptions.SyntaxErrorTests.test_non_utf8) ... ok
test_range_of_offsets (test.test_exceptions.SyntaxErrorTests.test_range_of_offsets) ... ok
test_except_star_invalid_exception_type (test.test_exceptions.TestInvalidExceptionMatcher.test_except_star_invalid_exception_type) ... ok

======================================================================
ERROR: test_windows_message (test.test_exceptions.ExceptionTests.test_windows_message)
Should fill in unknown error code in Windows error message
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_exceptions.py", line 447, in test_windows_message
    ctypes.pythonapi.PyErr_SetFromWindowsErr(code)
           ^^^^^^^^^
AttributeError: module 'ctypes' has no attribute 'pythonapi'

----------------------------------------------------------------------
Ran 109 tests in 1.045s

FAILED (errors=1, skipped=12)
test_exceptions failed (1 error)

== Tests result: FAILURE ==

1 test failed:
    test_exceptions

Total duration: 1.4 sec
Total tests: run=109 skipped=12
Total test files: run=1/1 failed=1
Result: FAILURE
test test_exceptions failed
builder: pypy-c-jit-win-x86-64 build #2434+
test: lib-python/3/test/test_exceptions.py::unmodified