def test_fault_join():
 pool = make_pool(1, 1)
 tpart = FakeTarPartition(1, explosive=Explosion('Boom'))
 pool.put(tpart)
 with pytest.raises(Explosion):
  pool.join()

def test_fault_join ( ) : pool = make_pool ( 1 , 1 ) tpart = FakeTarPartition ( 1 , explosive = Explosion ( 'Boom' ) ) pool . put ( tpart ) with pytest . raises ( Explosion ) : pool . join ( )
test if a fault is detected when .