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

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

== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 04:18:51) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-6.1.0-22-amd64-x86_64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_1007874æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 4257070088
0:00:00 load avg: 0.98 Run 1 test sequentially in a single process
0:00:00 load avg: 0.98 [1/1] test_except_star
test_break_continue_in_except_star_block_valid (test.test_except_star.TestBreakContinueReturnInExceptStarBlock.test_break_continue_in_except_star_block_valid) ... ok
test_break_in_except_star (test.test_except_star.TestBreakContinueReturnInExceptStarBlock.test_break_in_except_star) ... FAIL
test_continue_in_except_star_block_invalid (test.test_except_star.TestBreakContinueReturnInExceptStarBlock.test_continue_in_except_star_block_invalid) ... FAIL
test_return_in_except_star_block_invalid (test.test_except_star.TestBreakContinueReturnInExceptStarBlock.test_return_in_except_star_block_invalid) ... FAIL
test_return_in_except_star_block_valid (test.test_except_star.TestBreakContinueReturnInExceptStarBlock.test_return_in_except_star_block_valid) ... ok
test_sys_exception_restored (test.test_except_star.TestExceptStarCleanup.test_sys_exception_restored) ... ok
test_except_star_EG_subclass (test.test_except_star.TestExceptStarExceptionGroupSubclass.test_except_star_EG_subclass) ... ok
test_exception_group_subclass_with_bad_split_func (test.test_except_star.TestExceptStarExceptionGroupSubclass.test_exception_group_subclass_with_bad_split_func) ... ERROR
test_falsy_exception_group_subclass (test.test_except_star.TestExceptStarExceptionGroupSubclass.test_falsy_exception_group_subclass) ... ok
test_raise_handle_all_raise_one_named (test.test_except_star.TestExceptStarRaise.test_raise_handle_all_raise_one_named) ... ok
test_raise_handle_all_raise_one_unnamed (test.test_except_star.TestExceptStarRaise.test_raise_handle_all_raise_one_unnamed) ... ok
test_raise_handle_all_raise_two_named (test.test_except_star.TestExceptStarRaise.test_raise_handle_all_raise_two_named) ... ok
test_raise_handle_all_raise_two_unnamed (test.test_except_star.TestExceptStarRaise.test_raise_handle_all_raise_two_unnamed) ... ok
test_raise_named (test.test_except_star.TestExceptStarRaise.test_raise_named) ... ok
test_raise_unnamed (test.test_except_star.TestExceptStarRaise.test_raise_unnamed) ... ok
test_raise_handle_all_raise_one_named (test.test_except_star.TestExceptStarRaiseFrom.test_raise_handle_all_raise_one_named) ... ok
test_raise_handle_all_raise_one_unnamed (test.test_except_star.TestExceptStarRaiseFrom.test_raise_handle_all_raise_one_unnamed) ... ok
test_raise_handle_all_raise_two_named (test.test_except_star.TestExceptStarRaiseFrom.test_raise_handle_all_raise_two_named) ... ok
test_raise_handle_all_raise_two_unnamed (test.test_except_star.TestExceptStarRaiseFrom.test_raise_handle_all_raise_two_unnamed) ... ok
test_raise_named (test.test_except_star.TestExceptStarRaiseFrom.test_raise_named) ... ok
test_raise_unnamed (test.test_except_star.TestExceptStarRaiseFrom.test_raise_unnamed) ... ok
test_reraise_all_named (test.test_except_star.TestExceptStarReraise.test_reraise_all_named) ... ok
test_reraise_all_unnamed (test.test_except_star.TestExceptStarReraise.test_reraise_all_unnamed) ... ok
test_reraise_partial_handle_all_unnamed (test.test_except_star.TestExceptStarReraise.test_reraise_partial_handle_all_unnamed) ... ok
test_reraise_partial_handle_some_named (test.test_except_star.TestExceptStarReraise.test_reraise_partial_handle_some_named) ... ok
test_reraise_partial_handle_some_unnamed (test.test_except_star.TestExceptStarReraise.test_reraise_partial_handle_some_unnamed) ... ok
test_reraise_plain_exception_named (test.test_except_star.TestExceptStarReraise.test_reraise_plain_exception_named) ... ok
test_reraise_plain_exception_unnamed (test.test_except_star.TestExceptStarReraise.test_reraise_plain_exception_unnamed) ... ok
test_reraise_some_handle_all_named (test.test_except_star.TestExceptStarReraise.test_reraise_some_handle_all_named) ... ok
test_empty_groups_removed (test.test_except_star.TestExceptStarSplitSemantics.test_empty_groups_removed) ... ok
test_exception_group_except_star_Exception_not_wrapped (test.test_except_star.TestExceptStarSplitSemantics.test_exception_group_except_star_Exception_not_wrapped) ... ok
test_first_match_wins_named (test.test_except_star.TestExceptStarSplitSemantics.test_first_match_wins_named) ... ok
test_first_match_wins_unnamed (test.test_except_star.TestExceptStarSplitSemantics.test_first_match_wins_unnamed) ... ok
test_match__supertype (test.test_except_star.TestExceptStarSplitSemantics.test_match__supertype) ... ok
test_match_single_type (test.test_except_star.TestExceptStarSplitSemantics.test_match_single_type) ... ok
test_match_single_type_nested (test.test_except_star.TestExceptStarSplitSemantics.test_match_single_type_nested) ... ok
test_match_single_type_partial_match (test.test_except_star.TestExceptStarSplitSemantics.test_match_single_type_partial_match) ... ok
test_match_type_tuple_nested (test.test_except_star.TestExceptStarSplitSemantics.test_match_type_tuple_nested) ... ok
test_multiple_matches_named (test.test_except_star.TestExceptStarSplitSemantics.test_multiple_matches_named) ... ok
test_multiple_matches_unnamed (test.test_except_star.TestExceptStarSplitSemantics.test_multiple_matches_unnamed) ... ok
test_naked_exception_matched_wrapped1 (test.test_except_star.TestExceptStarSplitSemantics.test_naked_exception_matched_wrapped1) ... ok
test_naked_exception_matched_wrapped2 (test.test_except_star.TestExceptStarSplitSemantics.test_naked_exception_matched_wrapped2) ... ok
test_nested_except_stars (test.test_except_star.TestExceptStarSplitSemantics.test_nested_except_stars) ... ok
test_nested_in_loop (test.test_except_star.TestExceptStarSplitSemantics.test_nested_in_loop) ... ok
test_no_match_single_type (test.test_except_star.TestExceptStarSplitSemantics.test_no_match_single_type) ... ok
test_plain_exception_not_matched (test.test_except_star.TestExceptStarSplitSemantics.test_plain_exception_not_matched) ... ok
test_singleton_groups_are_kept (test.test_except_star.TestExceptStarSplitSemantics.test_singleton_groups_are_kept) ... ok
test_catch_all_unhashable_exception_group_subclass (test.test_except_star.TestExceptStar_WeirdExceptionGroupSubclass.test_catch_all_unhashable_exception_group_subclass) ... ok
test_catch_none_unhashable_exception_group_subclass (test.test_except_star.TestExceptStar_WeirdExceptionGroupSubclass.test_catch_none_unhashable_exception_group_subclass) ... ok
test_catch_some_unhashable_exception_group_subclass (test.test_except_star.TestExceptStar_WeirdExceptionGroupSubclass.test_catch_some_unhashable_exception_group_subclass) ... ok
test_reraise_unhashable_eg (test.test_except_star.TestExceptStar_WeirdExceptionGroupSubclass.test_reraise_unhashable_eg) ... ok
test_catch_everything_unhashable_leaf (test.test_except_star.TestExceptStar_WeirdLeafExceptions.test_catch_everything_unhashable_leaf) ... ok
test_catch_nothing_unhashable_leaf (test.test_except_star.TestExceptStar_WeirdLeafExceptions.test_catch_nothing_unhashable_leaf) ... ok
test_catch_unhashable_leaf_exception (test.test_except_star.TestExceptStar_WeirdLeafExceptions.test_catch_unhashable_leaf_exception) ... ok
test_propagate_unhashable_leaf (test.test_except_star.TestExceptStar_WeirdLeafExceptions.test_propagate_unhashable_leaf) ... ok
test_reraise_unhashable_leaf (test.test_except_star.TestExceptStar_WeirdLeafExceptions.test_reraise_unhashable_leaf) ... ok
test_except_star_ExceptionGroup_is_runtime_error_single (test.test_except_star.TestInvalidExceptStar.test_except_star_ExceptionGroup_is_runtime_error_single) ... ok
test_except_star_ExceptionGroup_is_runtime_error_tuple (test.test_except_star.TestInvalidExceptStar.test_except_star_ExceptionGroup_is_runtime_error_tuple) ... ok
test_except_star_invalid_exception_type (test.test_except_star.TestInvalidExceptStar.test_except_star_invalid_exception_type) ... ok
test_mixed_except_and_except_star_is_syntax_error (test.test_except_star.TestInvalidExceptStar.test_mixed_except_and_except_star_is_syntax_error) ... ok

======================================================================
ERROR: test_exception_group_subclass_with_bad_split_func (test.test_except_star.TestExceptStarExceptionGroupSubclass.test_exception_group_subclass_with_bad_split_func)
----------------------------------------------------------------------
  + Exception Group Traceback (most recent call last):
  |   File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 975, in test_exception_group_subclass_with_bad_split_func
  |     raise eg_class
  | test.test_except_star.TestExceptStarExceptionGroupSubclass.test_exception_group_subclass_with_bad_split_func.<locals>.BadEG1: eg (2 sub-exceptions)
  +-+---------------- 1 ----------------
    | OSError: 123
    +---------------- 2 ----------------
    | ValueError: 456
    +------------------------------------

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 976, in test_exception_group_subclass_with_bad_split_func
    except* ValueError:
ValueError: too many values to unpack (expected 2)

======================================================================
FAIL: test_break_in_except_star (test.test_except_star.TestBreakContinueReturnInExceptStarBlock.test_break_in_except_star)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 57, in check_invalid
    compile(textwrap.dedent(src), "<string>", "exec")
  File "<string>", line 5
    break
    ^^^^^
SyntaxError: 'break' cannot appear in an except* block

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 60, in test_break_in_except_star
    self.check_invalid(
         ^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 56, in check_invalid
    with self.assertRaisesRegex(SyntaxError, self.MSG):
AssertionError: "'break', 'continue' and 'return' cannot appear in an except\* block" does not match "'break' cannot appear in an except* block (<string>, line 5)"

======================================================================
FAIL: test_continue_in_except_star_block_invalid (test.test_except_star.TestBreakContinueReturnInExceptStarBlock.test_continue_in_except_star_block_invalid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 57, in check_invalid
    compile(textwrap.dedent(src), "<string>", "exec")
  File "<string>", line 6
    continue
    ^^^^^^^^
SyntaxError: 'continue' cannot appear in an except* block

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 92, in test_continue_in_except_star_block_invalid
    self.check_invalid(
         ^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 56, in check_invalid
    with self.assertRaisesRegex(SyntaxError, self.MSG):
AssertionError: "'break', 'continue' and 'return' cannot appear in an except\* block" does not match "'continue' cannot appear in an except* block (<string>, line 6)"

======================================================================
FAIL: test_return_in_except_star_block_invalid (test.test_except_star.TestBreakContinueReturnInExceptStarBlock.test_return_in_except_star_block_invalid)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 57, in check_invalid
    compile(textwrap.dedent(src), "<string>", "exec")
  File "<string>", line 6
    return 42
    ^^^^^^^^^
SyntaxError: 'return' cannot appear in an except* block

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 124, in test_return_in_except_star_block_invalid
    self.check_invalid(
         ^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_except_star.py", line 56, in check_invalid
    with self.assertRaisesRegex(SyntaxError, self.MSG):
AssertionError: "'break', 'continue' and 'return' cannot appear in an except\* block" does not match "'return' cannot appear in an except* block (<string>, line 6)"

----------------------------------------------------------------------
Ran 60 tests in 0.027s

FAILED (failures=3, errors=1)
0:00:00 load avg: 0.98 [1/1/1] test_except_star failed (1 error, 3 failures)

== Tests result: FAILURE ==

1 test failed:
    test_except_star

Total duration: 110 ms
Total tests: run=60 failures=3
Total test files: run=1/1 failed=1
Result: FAILURE
test test_except_star failed
builder: pypy-c-jit-linux-x86-64 build #11855+
test: lib-python/3/test/test_except_star.py::unmodified