@@ -1048,7 +1048,7 @@ their subgroups based on the types of the contained exceptions.
10481048 ... def derive (self , excs ):
10491049 ... return MyGroup(self .message, excs)
10501050 ...
1051- >>> e = MyGroup(" eg" , [ ValueError (1 ), TypeError (2 )] )
1051+ >>> e = MyGroup(" eg" , ( ValueError (1 ), TypeError (2 )) )
10521052 >>> e.add_note(" a note" )
10531053 >>> e.__context__ = Exception (" context" )
10541054 >>> e.__cause__ = Exception (" cause" )
@@ -1059,7 +1059,7 @@ their subgroups based on the types of the contained exceptions.
10591059 ...
10601060 >>> match, rest = exc.split(ValueError )
10611061 >>> exc, exc.__context__, exc.__cause__, exc.__notes__
1062- (MyGroup('eg', [ ValueError(1), TypeError(2)] ), Exception('context'), Exception('cause'), ['a note'])
1062+ (MyGroup('eg', ( ValueError(1), TypeError(2)) ), Exception('context'), Exception('cause'), ['a note'])
10631063 >>> match, match.__context__, match.__cause__, match.__notes__
10641064 (MyGroup('eg', [ValueError(1)]), Exception('context'), Exception('cause'), ['a note'])
10651065 >>> rest, rest.__context__, rest.__cause__, rest.__notes__
0 commit comments