#NEWLINE# def testWindowHoldsReferenceToChildWindows( self ) : #NEWLINE# #INDENT# parentWindow = GafferUI . Window ( ) #NEWLINE# childWindow = GafferUI . Window ( ) #NEWLINE# childWindowWeakRef = weakref . ref ( self ) #NEWLINE# parentWindow . addChildWindow ( childWindow ) #NEWLINE# del childWindow #NEWLINE# self . failUnless ( ( childWindowWeakRef ( ) is not None ) ) #NEWLINE# del parentWindow #NEWLINE# self . failUnless ( ( childWindowWeakRef ( ) is None ) )