#NEWLINE# def test_sub_selfref( self ) : #NEWLINE# #INDENT# coll = [ 0 , 1 , 2 , 3 ] #NEWLINE# sub = [ ] #NEWLINE# sub . append ( self ) #NEWLINE# coll . append ( sub ) #NEWLINE# with pytest . raises ( RuntimeError ) : #NEWLINE# #INDENT# assert ( coll == remap ( coll ) )