#NEWLINE# @ testing . requires . python3 #NEWLINE# def test_raise_from_cause_same_cause( self ) : #NEWLINE# #INDENT# class MyException ( Exception ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# def go( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# raise MyException ( 'exc one' ) #NEWLINE# #UNINDENT# except Exception as err : #NEWLINE# #INDENT# util . raise_from_cause ( err ) #NEWLINE# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# go ( ) #NEWLINE# assert False #NEWLINE# #UNINDENT# except MyException as err : #NEWLINE# #INDENT# is_ ( err . __cause__ , None )