+ Exception Group Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 31, in main | raise ExceptionGroup("group_1", [error_1, error_2]) | ExceptionGroup: group_1 (2 sub-exceptions) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 20, in main | a() | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 10, in a | 1 / 0 | ZeroDivisionError: division by zero +---------------- 2 ---------------- | Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 25, in main | b() | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 14, in b | raise ValueError("Error") | ValueError: Error +------------------------------------ The above exception was the direct cause of the following exception: + Exception Group Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 33, in main | raise ExceptionGroup("group_2", [error_2, error_1]) from err | ExceptionGroup: group_2 (2 sub-exceptions) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 25, in main | b() | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 14, in b | raise ValueError("Error") | ValueError: Error +---------------- 2 ---------------- | Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 20, in main | a() | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 10, in a | 1 / 0 | ZeroDivisionError: division by zero +------------------------------------ During handling of the above exception, another exception occurred: + Exception Group Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 42, in | main() | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 35, in main | raise ExceptionGroup("group_3", [err]) | ExceptionGroup: group_3 (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 33, in main | raise ExceptionGroup("group_2", [error_2, error_1]) from err | ExceptionGroup: group_2 (2 sub-exceptions) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 25, in main | b() | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 14, in b | raise ValueError("Error") | ValueError: Error +---------------- 2 ---------------- | Traceback (most recent call last): | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 20, in main | a() | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 10, in a | 1 / 0 | ZeroDivisionError: division by zero +------------------------------------ + Exception Group Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 31, in main | raise ExceptionGroup("group_1", [error_1, error_2]) |  │ └ ValueError('Error') |  └ ZeroDivisionError('division by zero') | | ExceptionGroup: group_1 (2 sub-exceptions) +-+---------------- 1 ---------------- | Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 20, in main | a() | └  | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 10, in a | 1 / 0 | | ZeroDivisionError: division by zero +---------------- 2 ---------------- | Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 25, in main | b() | └  | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 14, in b | raise ValueError("Error") | | ValueError: Error +------------------------------------ The above exception was the direct cause of the following exception: + Exception Group Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 33, in main | raise ExceptionGroup("group_2", [error_2, error_1]) from err |  │ └ ZeroDivisionError('division by zero') |  └ ValueError('Error') | | ExceptionGroup: group_2 (2 sub-exceptions) +-+---------------- 1 ---------------- | Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 25, in main | b() | └  | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 14, in b | raise ValueError("Error") | | ValueError: Error +---------------- 2 ---------------- | Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 20, in main | a() | └  | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 10, in a | 1 / 0 | | ZeroDivisionError: division by zero +------------------------------------ During handling of the above exception, another exception occurred: + Exception Group Traceback (most recent call last): | | > File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 42, in  | main() | └  | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 35, in main | raise ExceptionGroup("group_3", [err]) | | ExceptionGroup: group_3 (1 sub-exception) +-+---------------- 1 ---------------- | Exception Group Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 33, in main | raise ExceptionGroup("group_2", [error_2, error_1]) from err |  │ └ ZeroDivisionError('division by zero') |  └ ValueError('Error') | | ExceptionGroup: group_2 (2 sub-exceptions) +-+---------------- 1 ---------------- | Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 25, in main | b() | └  | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 14, in b | raise ValueError("Error") | | ValueError: Error +---------------- 2 ---------------- | Traceback (most recent call last): | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 20, in main | a() | └  | | File "tests/exceptions/source/modern/grouped_as_cause_and_context.py", line 10, in a | 1 / 0 | | ZeroDivisionError: division by zero +------------------------------------