#NEWLINE# def testReprLifetime( self ) : #NEWLINE# #INDENT# s = Gaffer . ScriptNode ( ) #NEWLINE# c = GafferUI . CompoundEditor ( s ) #NEWLINE# wc = weakref . ref ( c ) #NEWLINE# repr ( c ) #NEWLINE# del c #NEWLINE# self . assertEqual ( wc ( ) , None )