#NEWLINE# def test_strong_receiver( ) : #NEWLINE# #INDENT# sentinel = [ ] #NEWLINE# def received( sender ) : #NEWLINE# #INDENT# sentinel . append ( sender ) #NEWLINE# #UNINDENT# fn_id = id ( received ) #NEWLINE# sig = blinker . Signal ( ) #NEWLINE# sig . connect ( received , weak = False ) #NEWLINE# del received #NEWLINE# collect_acyclic_refs ( ) #NEWLINE# assert ( not sentinel ) #NEWLINE# sig . send ( ) #NEWLINE# assert sentinel #NEWLINE# assert ( [ id ( fn ) for fn in sig . receivers . values ( ) ] == [ fn_id ] )