#NEWLINE# @ pytest . mark . xfail #NEWLINE# def test_link_exit_remote( self ) : #NEWLINE# #INDENT# parent_context = Context ( ) #NEWLINE# parent_context . start ( ) #NEWLINE# parent = ParentProcess ( ) #NEWLINE# parent_context . spawn ( parent ) #NEWLINE# child = ChildProcess ( ) #NEWLINE# self . context . spawn ( child ) #NEWLINE# parent . send ( parent . pid , 'link_me' ) #NEWLINE# child . link_event . wait ( timeout = 1.0 ) #NEWLINE# assert child . link_event . is_set ( ) #NEWLINE# assert ( not child . exit_event . is_set ( ) ) #NEWLINE# parent_context . terminate ( parent . pid ) #NEWLINE# parent_context . stop ( ) #NEWLINE# child . send ( parent . pid , 'this_will_break' ) #NEWLINE# child . exit_event . wait ( timeout = 1 ) #NEWLINE# assert child . exit_event . is_set ( )